org.openqa.selenium.server
Class CommandHolder
java.lang.Object
org.openqa.selenium.server.CommandHolder
public class CommandHolder
- extends java.lang.Object
Holds the command to be next run in the browser
- Version:
- $Revision: 734 $
- Author:
- Jennifer Bevan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RETRY_CMD_STRING
protected static final java.lang.String RETRY_CMD_STRING
- See Also:
- Constant Field Values
retryCommand
protected static final RemoteCommand retryCommand
CommandHolder
public CommandHolder(java.lang.String queueId)
CommandHolder
public CommandHolder(java.lang.String queueId,
int timeoutInSeconds)
getCommand
public RemoteCommand getCommand()
- Get, and remove from the holder, the next command to run. If the next command doesn't show up
within timeoutInSeconds seconds, then return a "retry" command.
- Returns:
- the next command to execute.
putCommand
public boolean putCommand(RemoteCommand cmd)
isEmpty
public boolean isEmpty()
peek
public RemoteCommand peek()
poisonPollers
public void poisonPollers()
Copyright © 2011. All Rights Reserved.