public class GracefulShutdownRequestImpl extends OpaqueExtendedRequest 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()
The result containing response for this request.
|
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, getExtendedResponse, getRequestName, getRequestValue, getResponseType, hashCode, removeControl, setMessageId, setRequestName, setRequestValue, toString
getResponse, setResponse
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put, toString
addAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestName
getResponseType
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put
public GracefulShutdownRequestImpl(int messageId)
messageId
- the message idpublic GracefulShutdownRequestImpl()
public 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 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 GracefulShutdownResponse getResultResponse()
getResultResponse
in interface ResultResponseRequest
getResultResponse
in class OpaqueExtendedRequest
Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.