private abstract class ServerImpl.AsyncInvoker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
terminated
Flag indicating the server is still available for
|
Modifier | Constructor and Description |
---|---|
private |
AsyncInvoker() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
cancelRequests()
Cancel all the active requests.
|
abstract void |
invoke(AsyncRequestImpl request)
Invoke the async request, based on the operating mode.
|
boolean |
isTerminated()
Check if this async invoker is terminated.
|
abstract void |
start()
Start this async invoker.
|
void |
terminate()
Terminate this async invoker by setting the
terminated flag to true . |
private boolean terminated
public abstract void invoke(AsyncRequestImpl request)
request
- The request to be invoked.public abstract void start()
public abstract boolean cancelRequests()
true
if cancellation was possible.public void terminate()
terminated
flag to true
.public boolean isTerminated()
terminated
flag.