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, terminateprivate java.util.Set<AsyncRequestImpl> requests
public void invoke(AsyncRequestImpl request)
requests
set, to be able to cancel them.invoke in class ServerImpl.AsyncInvokerrequest - The request to be executed.public void start()
start in class ServerImpl.AsyncInvokerpublic boolean cancelRequests()
cancelRequests in class ServerImpl.AsyncInvokertrue if cancel was possible.