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.HttpResponse
addToQueue
(SessionRequest request) int
boolean
complete
(RequestId reqId, org.openqa.selenium.internal.Either<org.openqa.selenium.SessionNotCreatedException, CreateSessionResponse> result) static NewSessionQueue
getNextAvailable
(Map<org.openqa.selenium.Capabilities, Long> stereotypes) boolean
isReady()
boolean
A fast-path to detect if the queue is empty, returns false if there is no fast-path available.boolean
retryAddToQueue
(SessionRequest request) Methods inherited from class org.openqa.selenium.grid.sessionqueue.NewSessionQueue
execute, matches
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:NewSessionQueue
A fast-path to detect if the queue is empty, returns false if there is no fast-path available.- Specified by:
peekEmpty
in classNewSessionQueue
- Returns:
- true if the queue is empty, false if it is not empty or unknown
-
addToQueue
- Specified by:
addToQueue
in classNewSessionQueue
-
retryAddToQueue
- Specified by:
retryAddToQueue
in classNewSessionQueue
-
remove
- Specified by:
remove
in classNewSessionQueue
-
getNextAvailable
public List<SessionRequest> getNextAvailable(Map<org.openqa.selenium.Capabilities, Long> stereotypes) - Specified by:
getNextAvailable
in classNewSessionQueue
-
complete
public boolean complete(RequestId reqId, org.openqa.selenium.internal.Either<org.openqa.selenium.SessionNotCreatedException, CreateSessionResponse> result) - Specified by:
complete
in classNewSessionQueue
-
clearQueue
public int clearQueue()- Specified by:
clearQueue
in classNewSessionQueue
-
getQueueContents
- Specified by:
getQueueContents
in classNewSessionQueue
-
isReady
public boolean isReady()
-