Class RemoteNewSessionQueue
java.lang.Object
org.openqa.selenium.grid.sessionqueue.NewSessionQueue
org.openqa.selenium.grid.sessionqueue.remote.RemoteNewSessionQueue
- All Implemented Interfaces:
HttpHandler
,Routable
,HasReadyState
-
Field Summary
Fields inherited from class org.openqa.selenium.grid.sessionqueue.NewSessionQueue
tracer
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteNewSessionQueue
(Tracer tracer, HttpClient client, Secret registrationSecret) -
Method Summary
Modifier and TypeMethodDescriptionaddToQueue
(SessionRequest request) int
boolean
complete
(RequestId reqId, Either<SessionNotCreatedException, CreateSessionResponse> result) static NewSessionQueue
getNextAvailable
(Map<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
-
Constructor Details
-
RemoteNewSessionQueue
-
-
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
- Specified by:
getNextAvailable
in classNewSessionQueue
-
complete
public boolean complete(RequestId reqId, Either<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()
-