Class NewSessionQueue
java.lang.Object
org.openqa.selenium.grid.sessionqueue.NewSessionQueue
- All Implemented Interfaces:
org.openqa.selenium.remote.http.HttpHandler,org.openqa.selenium.remote.http.Routable,HasReadyState
- Direct Known Subclasses:
LocalNewSessionQueue,RemoteNewSessionQueue
public abstract class NewSessionQueue
extends Object
implements HasReadyState, org.openqa.selenium.remote.http.Routable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.openqa.selenium.remote.tracing.Tracer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNewSessionQueue(org.openqa.selenium.remote.tracing.Tracer tracer, Secret registrationSecret) -
Method Summary
Modifier and TypeMethodDescriptionabstract org.openqa.selenium.remote.http.HttpResponseaddToQueue(SessionRequest request) abstract intabstract booleancomplete(RequestId reqId, org.openqa.selenium.internal.Either<org.openqa.selenium.SessionNotCreatedException, CreateSessionResponse> result) org.openqa.selenium.remote.http.HttpResponseexecute(org.openqa.selenium.remote.http.HttpRequest req) abstract List<SessionRequest> getNextAvailable(Map<org.openqa.selenium.Capabilities, Long> stereotypes) abstract List<SessionRequestCapability> booleanmatches(org.openqa.selenium.remote.http.HttpRequest req) abstract booleanA fast-path to detect if the queue is empty, returns false if there is no fast-path available.abstract Optional<SessionRequest> abstract booleanretryAddToQueue(SessionRequest request) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openqa.selenium.status.HasReadyState
isReadyMethods inherited from interface org.openqa.selenium.remote.http.Routable
with
-
Field Details
-
tracer
protected final org.openqa.selenium.remote.tracing.Tracer tracer
-
-
Constructor Details
-
NewSessionQueue
protected NewSessionQueue(org.openqa.selenium.remote.tracing.Tracer tracer, Secret registrationSecret)
-
-
Method Details
-
peekEmpty
public abstract boolean peekEmpty()A fast-path to detect if the queue is empty, returns false if there is no fast-path available.- Returns:
- true if the queue is empty, false if it is not empty or unknown
-
addToQueue
-
retryAddToQueue
-
remove
-
getNextAvailable
public abstract List<SessionRequest> getNextAvailable(Map<org.openqa.selenium.Capabilities, Long> stereotypes) -
complete
public abstract boolean complete(RequestId reqId, org.openqa.selenium.internal.Either<org.openqa.selenium.SessionNotCreatedException, CreateSessionResponse> result) -
clearQueue
public abstract int clearQueue() -
getQueueContents
-
matches
public boolean matches(org.openqa.selenium.remote.http.HttpRequest req) - Specified by:
matchesin interfaceorg.openqa.selenium.remote.http.Routable
-
execute
public org.openqa.selenium.remote.http.HttpResponse execute(org.openqa.selenium.remote.http.HttpRequest req) - Specified by:
executein interfaceorg.openqa.selenium.remote.http.HttpHandler
-