public class CommandHolder extends Object
Holds the command to be next run in the browser
Modifier and Type | Field and Description |
---|---|
protected static String |
RETRY_CMD_STRING |
protected static RemoteCommand |
retryCommand |
Constructor and Description |
---|
CommandHolder(String queueId) |
CommandHolder(String queueId,
int timeoutInSeconds) |
Modifier and Type | Method and Description |
---|---|
RemoteCommand |
getCommand()
Get, and remove from the holder, the next command to run.
|
boolean |
isEmpty() |
RemoteCommand |
peek() |
void |
poisonPollers() |
boolean |
putCommand(RemoteCommand cmd) |
protected static final String RETRY_CMD_STRING
protected static final RemoteCommand retryCommand
public CommandHolder(String queueId)
public CommandHolder(String queueId, int timeoutInSeconds)
public RemoteCommand getCommand()
public boolean putCommand(RemoteCommand cmd)
public boolean isEmpty()
public RemoteCommand peek()
public void poisonPollers()
Copyright © 2015. All rights reserved.