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) intbooleancomplete(RequestId reqId, Either<SessionNotCreatedException, CreateSessionResponse> result) static NewSessionQueuegetNextAvailable(Map<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, matches
-
Constructor Details
-
RemoteNewSessionQueue
-
-
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
- Specified by:
getNextAvailablein classNewSessionQueue
-
complete
public boolean complete(RequestId reqId, Either<SessionNotCreatedException, CreateSessionResponse> result) - Specified by:
completein classNewSessionQueue
-
clearQueue
public int clearQueue()- Specified by:
clearQueuein classNewSessionQueue
-
getQueueContents
- Specified by:
getQueueContentsin classNewSessionQueue
-
isReady
public boolean isReady()
-