|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.server.SingleEntryAsyncQueue
public class SingleEntryAsyncQueue
Provides a synchronizing queue that holds a single entry (eg a single Selenium Command).
Constructor Summary | |
---|---|
SingleEntryAsyncQueue(java.lang.String label,
java.util.concurrent.locks.Lock dataLock,
java.util.concurrent.locks.Condition condition)
|
Method Summary | |
---|---|
void |
clear()
clear contents and tell any waiting threads to go away. |
java.lang.Object |
get()
Retrieves the item from the queue. |
int |
getTimeout()
|
boolean |
hasBlockedGetter()
|
boolean |
isEmpty()
|
java.lang.Object |
peek()
Retrieves the item from the queue. |
void |
put(java.lang.Object newObj)
Puts something in the queue. |
static void |
setDefaultTimeout(int defaultTimeout)
|
void |
setRetry(boolean retry)
|
void |
setTimeout(int timeout)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SingleEntryAsyncQueue(java.lang.String label, java.util.concurrent.locks.Lock dataLock, java.util.concurrent.locks.Condition condition)
Method Detail |
---|
public void clear()
public int getTimeout()
public void setTimeout(int timeout)
public java.lang.Object get()
Retrieves the item from the queue.
If there's nothing in the queue right now, wait a period of time for something to show up.
SeleniumCommandTimedOutException
- if the timeout is exceeded.public java.lang.Object peek()
Retrieves the item from the queue.
If there's nothing in the queue right now, wait a period of time for something to show up.
SeleniumCommandTimedOutException
- if the timeout is exceeded.public boolean isEmpty()
public java.lang.String toString()
toString
in class java.lang.Object
public void put(java.lang.Object newObj)
Puts something in the queue.
If there's already something available in the queue, wait for that item to get picked up and removed from the queue.
newObj
- - the thing to put in the queuepublic static void setDefaultTimeout(int defaultTimeout)
public boolean hasBlockedGetter()
public void setRetry(boolean retry)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |