public class GracefulShutdownRequestImpl extends org.apache.directory.api.ldap.model.message.AbstractExtendedRequest implements GracefulShutdownRequest
EXTENSION_OID, NOW, UNDETERMINED| Constructor and Description |
|---|
GracefulShutdownRequestImpl()
Instantiates a new graceful shutdown request.
|
GracefulShutdownRequestImpl(int messageId)
Instantiates a new graceful shutdown request.
|
GracefulShutdownRequestImpl(int messageId,
int timeOffline,
int delay)
Instantiates a new graceful shutdown request.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDelay()
Gets the delay before disconnection, in seconds.
|
GracefulShutdownResponse |
getResultResponse() |
int |
getTimeOffline()
Gets the offline time after disconnection, in minutes.
|
void |
setDelay(int delay)
Sets the delay before disconnection, in seconds.
|
void |
setTimeOffline(int timeOffline)
Sets the time offline after disconnection, in minutes.
|
addAllControls, addControl, equals, getRequestName, getResponseType, hashCode, removeControl, setMessageId, setRequestName, toStringhasResponseget, getControl, getControls, getMessageId, getType, hasControl, put, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestNamepublic GracefulShutdownRequestImpl(int messageId)
messageId - the message idpublic GracefulShutdownRequestImpl()
messageId - the message idpublic GracefulShutdownRequestImpl(int messageId,
int timeOffline,
int delay)
messageId - the message idtimeOffline - the offline time after disconnection, in minutesdelay - the delay before disconnection, in secondspublic 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 GracefulShutdownResponse getResultResponse()
getResultResponse in interface org.apache.directory.api.ldap.model.message.ResultResponseRequestgetResultResponse in class org.apache.directory.api.ldap.model.message.AbstractExtendedRequestCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.