org.openqa.selenium.server
Class SingleEntryAsyncQueue<T>
java.lang.Object
org.openqa.selenium.server.SingleEntryAsyncQueue<T>
public class SingleEntryAsyncQueue<T>
- extends java.lang.Object
Holds the command to be next run in the browser
This class uses reentrant locks in order to allow the same thread to populate the queue as is
waiting for it, which is what currently happens on during browser startup.
- Version:
- $Revision: 734 $
- Author:
- Jennifer Bevan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MILLISECONDS
public static final long MILLISECONDS
- See Also:
- Constant Field Values
SingleEntryAsyncQueue
public SingleEntryAsyncQueue(long timeoutInSecs)
getTimeoutInSeconds
public long getTimeoutInSeconds()
setPoison
protected void setPoison(T poisonInstance)
isPoison
protected boolean isPoison(T poisonSample)
pollToGetContentUntilTimeout
protected T pollToGetContentUntilTimeout()
putContent
protected boolean putContent(T thing)
isEmpty
protected boolean isEmpty()
peek
protected T peek()
poisonPollers
protected boolean poisonPollers()
- Clears the contents of the holder (if any) and also feeds 'poison' data a pending listener (if
any);
- Returns:
- true if poison was set and sent to any listeners.
Copyright © 2012. All Rights Reserved.