public abstract class GracefulAction extends AbstractAsn1Object
Modifier and Type | Field and Description |
---|---|
protected int |
delay
Delay before disconnection
|
static int |
NOW
The shutdown is immediate
|
protected int |
timeOffline
offline Time after disconnection
|
static int |
UNDETERMINED
Undetermined value used for timeOffline
|
Constructor and Description |
---|
GracefulAction()
Default constructor.
|
GracefulAction(int timeOffline,
int delay)
Create a GracefulAction object, with a timeOffline and a delay
|
Modifier and Type | Method and Description |
---|---|
int |
getDelay() |
int |
getTimeOffline() |
void |
setDelay(int delay) |
void |
setTimeOffline(int timeOffline) |
addLength, computeLength, encode, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
public static final int UNDETERMINED
public static final int NOW
protected int timeOffline
protected int delay
public GracefulAction()
public GracefulAction(int timeOffline, int delay)
timeOffline
- The time the server will be offlinedelay
- The delay before the disconnectionpublic int getDelay()
public void setDelay(int delay)
public int getTimeOffline()
public void setTimeOffline(int timeOffline)
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.