public class GracefulShutdownRequestDecorator extends ExtendedRequestDecorator<GracefulShutdownRequest> implements GracefulShutdownRequest
requestValuemessageLengthEXTENSION_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() |
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.
|
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, putpublic 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 disconnectionpublic String toString()
toString in class MessageDecorator<GracefulShutdownRequest>Copyright © 2021. All rights reserved.