public class ActionDelay
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ActionDelay.Action
Enumeration containing actions to be taken by the clients.
|
Constructor and Description |
---|
ActionDelay()
Default constructor with zero arguments.
|
ActionDelay(ActionDelay.Action action,
long delayMilliseconds,
java.lang.String args)
Creates an ActionDelay and sets all elements at once.
|
Modifier and Type | Method and Description |
---|---|
ActionDelay.Action |
getAction() |
java.lang.String |
getArgs() |
long |
getDelayMilliseconds() |
void |
setAction(ActionDelay.Action action) |
void |
setArgs(java.lang.String args) |
void |
setDelayMilliseconds(long delayMilliseconds) |
public ActionDelay()
public ActionDelay(ActionDelay.Action action, long delayMilliseconds, java.lang.String args)
action
- An action from the action enumeration.delayMilliseconds
- Milliseconds for the client to wait for
doing another poll.args
- Arguments the client may need to complete an action.public ActionDelay.Action getAction()
public void setAction(ActionDelay.Action action)
action
- the action to setpublic long getDelayMilliseconds()
public void setDelayMilliseconds(long delayMilliseconds)
delayMilliseconds
- the delayMilliseconds to setpublic java.lang.String getArgs()
public void setArgs(java.lang.String args)
args
- the args to set