Class LocalNewSessionQueue
- java.lang.Object
-
- org.openqa.selenium.grid.sessionqueue.NewSessionQueue
-
- org.openqa.selenium.grid.sessionqueue.local.LocalNewSessionQueue
-
- All Implemented Interfaces:
HasReadyState
public class LocalNewSessionQueue extends NewSessionQueue
-
-
Field Summary
-
Fields inherited from class org.openqa.selenium.grid.sessionqueue.NewSessionQueue
requestTimeout, retryInterval, tracer
-
-
Constructor Summary
Constructors Constructor Description LocalNewSessionQueue(org.openqa.selenium.remote.tracing.Tracer tracer, EventBus bus, java.time.Duration retryInterval, java.time.Duration requestTimeout)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
callExecutorShutdown()
int
clear()
static NewSessionQueue
create(Config config)
java.util.List<java.util.Set<org.openqa.selenium.Capabilities>>
getQueuedRequests()
int
getQueueSize()
boolean
isReady()
boolean
offerFirst(SessionRequest request)
boolean
offerLast(SessionRequest request)
java.util.Optional<SessionRequest>
remove(RequestId id)
-
Methods inherited from class org.openqa.selenium.grid.sessionqueue.NewSessionQueue
hasRequestTimedOut
-
-
-
-
Constructor Detail
-
LocalNewSessionQueue
public LocalNewSessionQueue(org.openqa.selenium.remote.tracing.Tracer tracer, EventBus bus, java.time.Duration retryInterval, java.time.Duration requestTimeout)
-
-
Method Detail
-
create
public static NewSessionQueue create(Config config)
-
isReady
public boolean isReady()
-
getQueueSize
public int getQueueSize()
- Specified by:
getQueueSize
in classNewSessionQueue
-
getQueuedRequests
public java.util.List<java.util.Set<org.openqa.selenium.Capabilities>> getQueuedRequests()
- Specified by:
getQueuedRequests
in classNewSessionQueue
-
offerLast
public boolean offerLast(SessionRequest request)
- Specified by:
offerLast
in classNewSessionQueue
-
offerFirst
public boolean offerFirst(SessionRequest request)
- Specified by:
offerFirst
in classNewSessionQueue
-
remove
public java.util.Optional<SessionRequest> remove(RequestId id)
- Specified by:
remove
in classNewSessionQueue
-
clear
public int clear()
- Specified by:
clear
in classNewSessionQueue
-
callExecutorShutdown
public void callExecutorShutdown()
-
-