public interface InvokeFuture
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
RemotingCommand waitResponse(long timeoutMillis) throws InterruptedException
timeoutMillis - InterruptedExceptionRemotingCommand 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()
Copyright © 2018. All rights reserved.