public class GracefulShutdownRequestDecorator extends ExtendedRequestDecorator<GracefulShutdownRequest,GracefulShutdownResponse> implements GracefulShutdownRequest
requestValue
messageLength
EXTENSION_OID, NOW, UNDETERMINED
RESP_TYPE, TYPE
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() |
int |
getTimeOffline()
Gets the offline time after disconnection, in minutes.
|
void |
setDelay(int delay)
Sets the delay befor disconnection, in seconds.
|
void |
setRequestValue(byte[] requestValue) |
void |
setTimeOffline(int timeOffline)
Sets the time offline after disconnection, in minutes.
|
addAllControls, addControl, computeLength, encode, getExtendedRequestLength, getRequestName, getRequestNameBytes, removeControl, setExtendedRequestLength, setMessageId, setRequestName, setRequestNameBytes
abandon, addAbandonListener, getResponseType, isAbandoned
getResultResponse, hasResponse
get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, setMessageLength, toString
clone, equals, finalize, 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
- decoratedMessage
- public void setRequestValue(byte[] requestValue)
setRequestValue
in class ExtendedRequestDecorator<GracefulShutdownRequest,GracefulShutdownResponse>
public byte[] getRequestValue()
getRequestValue
in class ExtendedRequestDecorator<GracefulShutdownRequest,GracefulShutdownResponse>
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 disconnectionCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.