public class GracefulShutdownRequestDecorator extends ExtendedRequestDecorator<GracefulShutdownRequest> implements GracefulShutdownRequest
| Modifier and Type | Field and Description |
|---|---|
private int |
gracefulSequenceLength
Length of the sequence
|
private GracefulShutdownRequest |
gracefulShutdownRequest |
private static org.slf4j.Logger |
LOG |
requestValuemessageLengthEXTENSION_OID, NOW, UNDETERMINED| Constructor and Description |
|---|
GracefulShutdownRequestDecorator(LdapApiService codec,
GracefulShutdownRequest decoratedMessage)
Creates a new instance of GracefulShutdownRequestDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
computeLengthInternal()
Compute the GracefulShutdown length
|
(package private) java.nio.ByteBuffer |
encodeInternal()
Encodes the gracefulShutdown extended operation.
|
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 before disconnection, in seconds.
|
void |
setRequestValue(byte[] requestValue) |
void |
setTimeOffline(int timeOffline)
Sets the time offline after disconnection, in minutes.
|
java.lang.String |
toString()
Return a string representation of the graceful shutdown
|
addAllControls, addControl, computeLength, encode, getRequestName, removeControl, setMessageId, setRequestNameabandon, addAbandonListener, getResponseType, isAbandonedgetResultResponse, hasResponseget, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, setMessageLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestNamegetResponseTypegetResultResponsehasResponseget, getControl, getControls, getMessageId, getType, hasControl, putprivate static final org.slf4j.Logger LOG
private int gracefulSequenceLength
private GracefulShutdownRequest gracefulShutdownRequest
public GracefulShutdownRequestDecorator(LdapApiService codec, GracefulShutdownRequest decoratedMessage)
codec - decoratedMessage - public void setRequestValue(byte[] requestValue)
setRequestValue in class ExtendedRequestDecorator<GracefulShutdownRequest>public byte[] getRequestValue()
getRequestValue in class ExtendedRequestDecorator<GracefulShutdownRequest>public int getDelay()
getDelay in interface GracefulShutdownRequestpublic void setDelay(int delay)
setDelay in interface GracefulShutdownRequestdelay - the new delay before disconnectionpublic int getTimeOffline()
getTimeOffline in interface GracefulShutdownRequestpublic void setTimeOffline(int timeOffline)
setTimeOffline in interface GracefulShutdownRequesttimeOffline - the new time offline after disconnectionint computeLengthInternal()
0x30 L1 | +--> [0x02 0x0(1-4) [0..720] ] +--> [0x80 0x0(1-3) [0..86400] ]L1 will always be < 11.
java.nio.ByteBuffer encodeInternal()
throws EncoderException
EncoderException - If anything goes wrong.public java.lang.String toString()
toString in class MessageDecorator<GracefulShutdownRequest>