|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InvokeFuture
The future of an invocation.
| Method Summary | |
|---|---|
void |
addTimeout(io.netty.util.Timeout timeout)
Add timeout for the future. |
void |
cancelTimeout()
Cancel the timeout. |
RemotingCommand |
createConnectionClosedResponse(InetSocketAddress responseHost)
Create a remoting command response when connection closed |
void |
executeInvokeCallback()
Execute the callback. |
ClassLoader |
getAppClassLoader()
|
Throwable |
getCause()
Get the cause of exception of the future. |
InvokeCallback |
getInvokeCallback()
Get the application callback of the future. |
InvokeContext |
getInvokeContext()
get invoke context |
byte |
getProtocolCode()
Get the protocol code of command. |
int |
invokeId()
Get the id of the invocation. |
boolean |
isDone()
Whether the future is done. |
void |
putResponse(RemotingCommand response)
Put the response to the future. |
void |
setCause(Throwable cause)
Set the cause if exception caught. |
void |
setInvokeContext(InvokeContext invokeContext)
set invoke context |
void |
tryAsyncExecuteInvokeCallbackAbnormally()
Asynchronous execute the callback abnormally. |
RemotingCommand |
waitResponse()
Wait response with unlimit timeout |
RemotingCommand |
waitResponse(long timeoutMillis)
Wait response with timeout. |
| Method Detail |
|---|
RemotingCommand waitResponse(long timeoutMillis)
throws InterruptedException
timeoutMillis -
InterruptedException
RemotingCommand waitResponse()
throws InterruptedException
InterruptedExceptionRemotingCommand createConnectionClosedResponse(InetSocketAddress responseHost)
responseHost -
void putResponse(RemotingCommand response)
response - int invokeId()
void executeInvokeCallback()
void tryAsyncExecuteInvokeCallbackAbnormally()
void setCause(Throwable cause)
cause - Throwable getCause()
InvokeCallback getInvokeCallback()
void addTimeout(io.netty.util.Timeout timeout)
timeout - void cancelTimeout()
boolean isDone()
ClassLoader getAppClassLoader()
byte getProtocolCode()
void setInvokeContext(InvokeContext invokeContext)
invokeContext - InvokeContext getInvokeContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||