Class RemoteNewSessionQueue
java.lang.Object
org.openqa.selenium.grid.sessionqueue.NewSessionQueue
org.openqa.selenium.grid.sessionqueue.remote.RemoteNewSessionQueue
- All Implemented Interfaces:
org.openqa.selenium.remote.http.HttpHandler,org.openqa.selenium.remote.http.Routable,HasReadyState
-
Field Summary
Fields inherited from class org.openqa.selenium.grid.sessionqueue.NewSessionQueue
tracer -
Constructor Summary
ConstructorsConstructorDescriptionRemoteNewSessionQueue(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient client, Secret registrationSecret) -
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.remote.http.HttpResponseaddToQueue(SessionRequest request) intbooleancomplete(RequestId reqId, org.openqa.selenium.internal.Either<org.openqa.selenium.SessionNotCreatedException, CreateSessionResponse> result) static NewSessionQueuegetNextAvailable(Map<org.openqa.selenium.Capabilities, Long> stereotypes) booleanisReady()booleanA fast-path to detect if the queue is empty, returns false if there is no fast-path available.booleanretryAddToQueue(SessionRequest request) Methods inherited from class org.openqa.selenium.grid.sessionqueue.NewSessionQueue
execute, matchesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openqa.selenium.remote.http.Routable
with
-
Constructor Details
-
RemoteNewSessionQueue
public RemoteNewSessionQueue(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient client, Secret registrationSecret)
-
-
Method Details
-
create
-
peekEmpty
public boolean peekEmpty()Description copied from class:NewSessionQueueA fast-path to detect if the queue is empty, returns false if there is no fast-path available.- Specified by:
peekEmptyin classNewSessionQueue- Returns:
- true if the queue is empty, false if it is not empty or unknown
-
addToQueue
- Specified by:
addToQueuein classNewSessionQueue
-
retryAddToQueue
- Specified by:
retryAddToQueuein classNewSessionQueue
-
remove
- Specified by:
removein classNewSessionQueue
-
getNextAvailable
public List<SessionRequest> getNextAvailable(Map<org.openqa.selenium.Capabilities, Long> stereotypes) - Specified by:
getNextAvailablein classNewSessionQueue
-
complete
public boolean complete(RequestId reqId, org.openqa.selenium.internal.Either<org.openqa.selenium.SessionNotCreatedException, CreateSessionResponse> result) - Specified by:
completein classNewSessionQueue
-
clearQueue
public int clearQueue()- Specified by:
clearQueuein classNewSessionQueue
-
getQueueContents
- Specified by:
getQueueContentsin classNewSessionQueue
-
isReady
public boolean isReady()
-