public abstract class AsyncInvoker extends Object implements Runnable
Tube
line asynchronously for the client's async API(for e.g.: Dispatch#invokeAsync}
The concrete classes need to call Stub.processAsync(AsyncResponseImpl, Packet, RequestContext, Fiber.CompletionCallback)
in
run() method.Modifier and Type | Field and Description |
---|---|
protected boolean |
nonNullAsyncHandlerGiven |
protected AsyncResponseImpl |
responseImpl
Because of the object instantiation order,
we can't take this as a constructor parameter.
|
Constructor and Description |
---|
AsyncInvoker() |
Modifier and Type | Method and Description |
---|---|
abstract void |
do_run() |
AsyncResponseImpl |
getResponseImpl() |
boolean |
isNonNullAsyncHandlerGiven() |
void |
run() |
void |
setNonNullAsyncHandlerGiven(boolean nonNullAsyncHandlerGiven) |
void |
setReceiver(AsyncResponseImpl responseImpl) |
void |
setResponseImpl(AsyncResponseImpl responseImpl) |
protected AsyncResponseImpl responseImpl
protected boolean nonNullAsyncHandlerGiven
public void setReceiver(AsyncResponseImpl responseImpl)
public AsyncResponseImpl getResponseImpl()
public void setResponseImpl(AsyncResponseImpl responseImpl)
public boolean isNonNullAsyncHandlerGiven()
public void setNonNullAsyncHandlerGiven(boolean nonNullAsyncHandlerGiven)
public abstract void do_run()
Copyright © 2015 Oracle Corporation. All rights reserved.