private class ServerImpl.SessionFreeInvoker extends ServerImpl.AsyncInvoker
Modifier and Type | Field and Description |
---|---|
private java.util.Set<AsyncRequestImpl> |
requests
A set of running requests.
|
Modifier | Constructor and Description |
---|---|
private |
SessionFreeInvoker() |
Modifier and Type | Method and Description |
---|---|
boolean |
cancelRequests()
Cancel all running requests by sending the STOP conditions to them.
|
void |
invoke(AsyncRequestImpl request)
Invoking an async request in State-free mode needs to request to be executed in its
separated thread.
|
void |
start()
This is a no-op, as the State-free invoker doesn't need a dedicated thread.
|
isTerminated, terminate
private java.util.Set<AsyncRequestImpl> requests
public void invoke(AsyncRequestImpl request)
requests
set, to be able to cancel them.invoke
in class ServerImpl.AsyncInvoker
request
- The request to be executed.public void start()
start
in class ServerImpl.AsyncInvoker
public boolean cancelRequests()
cancelRequests
in class ServerImpl.AsyncInvoker
true
if cancel was possible.