public class CommandResultHolder extends Object
Holds the command to be next run in the browser
Modifier and Type | Field and Description |
---|---|
protected static String |
CMD_NULL_RESULT_MSG |
protected static String |
CMD_TIMED_OUT_MSG |
Constructor and Description |
---|
CommandResultHolder(String queueId,
long timeoutInSeconds) |
Modifier and Type | Method and Description |
---|---|
String |
getResult()
Get a result out of the result holder (from the browser), waiting no longer than the timeout.
|
boolean |
isEmpty() |
String |
peek() |
void |
poisonPollers() |
boolean |
putResult(String res) |
protected static final String CMD_TIMED_OUT_MSG
protected static final String CMD_NULL_RESULT_MSG
public CommandResultHolder(String queueId, long timeoutInSeconds)
public String getResult()
public boolean putResult(String res)
public boolean isEmpty()
public String peek()
public void poisonPollers()
Copyright © 2016. All rights reserved.