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 java.lang.Object implements HasReadyState, org.openqa.selenium.remote.http.Routable
-
-
Field Summary
Fields Modifier and Type Field Description protected org.openqa.selenium.remote.tracing.Tracertracer
-
Constructor Summary
Constructors Modifier Constructor Description protectedNewSessionQueue(org.openqa.selenium.remote.tracing.Tracer tracer, Secret registrationSecret)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.openqa.selenium.remote.http.HttpResponseaddToQueue(SessionRequest request)abstract intclearQueue()abstract voidcomplete(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 java.util.Optional<SessionRequest>getNextAvailable(java.util.Set<org.openqa.selenium.Capabilities> stereotypes)abstract java.util.List<SessionRequestCapability>getQueueContents()booleanmatches(org.openqa.selenium.remote.http.HttpRequest req)abstract java.util.Optional<SessionRequest>remove(RequestId reqId)abstract booleanretryAddToQueue(SessionRequest request)-
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.status.HasReadyState
isReady
-
-
-
-
Constructor Detail
-
NewSessionQueue
protected NewSessionQueue(org.openqa.selenium.remote.tracing.Tracer tracer, Secret registrationSecret)
-
-
Method Detail
-
addToQueue
public abstract org.openqa.selenium.remote.http.HttpResponse addToQueue(SessionRequest request)
-
retryAddToQueue
public abstract boolean retryAddToQueue(SessionRequest request)
-
remove
public abstract java.util.Optional<SessionRequest> remove(RequestId reqId)
-
getNextAvailable
public abstract java.util.Optional<SessionRequest> getNextAvailable(java.util.Set<org.openqa.selenium.Capabilities> stereotypes)
-
complete
public abstract void complete(RequestId reqId, org.openqa.selenium.internal.Either<org.openqa.selenium.SessionNotCreatedException,CreateSessionResponse> result)
-
clearQueue
public abstract int clearQueue()
-
getQueueContents
public abstract java.util.List<SessionRequestCapability> 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
-
-