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()
Get application classloader.
|
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 - time out in millisecondInterruptedException - if interruptedRemotingCommand waitResponse() throws InterruptedException
InterruptedException - if interruptedRemotingCommand createConnectionClosedResponse(InetSocketAddress responseHost)
responseHost - target hostvoid putResponse(RemotingCommand response)
response - remoting commandint invokeId()
void executeInvokeCallback()
void tryAsyncExecuteInvokeCallbackAbnormally()
void setCause(Throwable cause)
Throwable getCause()
InvokeCallback getInvokeCallback()
void addTimeout(io.netty.util.Timeout timeout)
void cancelTimeout()
boolean isDone()
ClassLoader getAppClassLoader()
byte getProtocolCode()
void setInvokeContext(InvokeContext invokeContext)
InvokeContext getInvokeContext()
Copyright © 2020. All rights reserved.