public class GracefulShutdownRequestDecorator extends ExtendedRequestDecorator<GracefulShutdownRequest> implements GracefulShutdownRequest
EXTENSION_OID, NOW, UNDETERMINED
Constructor and Description |
---|
GracefulShutdownRequestDecorator(LdapApiService codec,
GracefulShutdownRequest decoratedMessage)
Creates a new instance of GracefulShutdownRequestDecorator.
|
Modifier and Type | Method and Description |
---|---|
int |
getDelay()
Gets the delay before disconnection, in seconds.
|
byte[] |
getRequestValue()
Gets the Extended request payload
|
int |
getTimeOffline()
Gets the offline time after disconnection, in minutes.
|
void |
setDelay(int delay)
Sets the delay before disconnection, in seconds.
|
void |
setRequestValue(byte[] requestValue)
sets the Extended request payload
|
void |
setTimeOffline(int timeOffline)
Sets the time offline after disconnection, in minutes.
|
String |
toString()
Return a string representation of the graceful shutdown
|
addAllControls, addControl, computeLength, encode, getRequestName, removeControl, setMessageId, setRequestName
abandon, addAbandonListener, getResponseType, isAbandoned
getResultResponse, hasResponse
get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, setMessageLength
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestName
getResponseType
getResultResponse
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put
public GracefulShutdownRequestDecorator(LdapApiService codec, GracefulShutdownRequest decoratedMessage)
codec
- The LDAP Service to usedecoratedMessage
- The GracefulShutdownRequest control to decoratepublic void setRequestValue(byte[] requestValue)
setRequestValue
in class ExtendedRequestDecorator<GracefulShutdownRequest>
requestValue
- The extended payloadpublic byte[] getRequestValue()
getRequestValue
in class ExtendedRequestDecorator<GracefulShutdownRequest>
public int getDelay()
getDelay
in interface GracefulShutdownRequest
public void setDelay(int delay)
setDelay
in interface GracefulShutdownRequest
delay
- the new delay before disconnectionpublic int getTimeOffline()
getTimeOffline
in interface GracefulShutdownRequest
public void setTimeOffline(int timeOffline)
setTimeOffline
in interface GracefulShutdownRequest
timeOffline
- the new time offline after disconnectionpublic String toString()
toString
in class MessageDecorator<GracefulShutdownRequest>
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.