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
public class RemoteNewSessionQueue extends NewSessionQueue
-
-
Field Summary
-
Fields inherited from class org.openqa.selenium.grid.sessionqueue.NewSessionQueue
tracer
-
-
Constructor Summary
Constructors Constructor Description RemoteNewSessionQueue(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient client, Secret registrationSecret)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.remote.http.HttpResponse
addToQueue(SessionRequest request)
int
clearQueue()
void
complete(RequestId reqId, org.openqa.selenium.internal.Either<org.openqa.selenium.SessionNotCreatedException,CreateSessionResponse> result)
static NewSessionQueue
create(org.openqa.selenium.grid.config.Config config)
java.util.List<SessionRequest>
getNextAvailable(java.util.Map<org.openqa.selenium.Capabilities,java.lang.Long> stereotypes)
java.util.List<SessionRequestCapability>
getQueueContents()
boolean
isReady()
java.util.Optional<SessionRequest>
remove(RequestId reqId)
boolean
retryAddToQueue(SessionRequest request)
-
Methods inherited from class org.openqa.selenium.grid.sessionqueue.NewSessionQueue
execute, matches
-
-
-
-
Constructor Detail
-
RemoteNewSessionQueue
public RemoteNewSessionQueue(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient client, Secret registrationSecret)
-
-
Method Detail
-
create
public static NewSessionQueue create(org.openqa.selenium.grid.config.Config config)
-
addToQueue
public org.openqa.selenium.remote.http.HttpResponse addToQueue(SessionRequest request)
- Specified by:
addToQueue
in classNewSessionQueue
-
retryAddToQueue
public boolean retryAddToQueue(SessionRequest request)
- Specified by:
retryAddToQueue
in classNewSessionQueue
-
remove
public java.util.Optional<SessionRequest> remove(RequestId reqId)
- Specified by:
remove
in classNewSessionQueue
-
getNextAvailable
public java.util.List<SessionRequest> getNextAvailable(java.util.Map<org.openqa.selenium.Capabilities,java.lang.Long> stereotypes)
- Specified by:
getNextAvailable
in classNewSessionQueue
-
complete
public void 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
public java.util.List<SessionRequestCapability> getQueueContents()
- Specified by:
getQueueContents
in classNewSessionQueue
-
isReady
public boolean isReady()
-
-