public class ResponseFuture extends Object
| 构造器和说明 |
|---|
ResponseFuture(int opaque,
long timeoutMillis,
InvokeCallback invokeCallback,
SemaphoreReleaseOnlyOnce once) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
executeInvokeCallback() |
long |
getBeginTimestamp() |
Throwable |
getCause() |
InvokeCallback |
getInvokeCallback() |
int |
getOpaque() |
RemotingCommand |
getResponseCommand() |
long |
getTimeoutMillis() |
boolean |
isSendRequestOK() |
boolean |
isTimeout() |
void |
putResponse(RemotingCommand responseCommand) |
void |
release() |
void |
setCause(Throwable cause) |
void |
setResponseCommand(RemotingCommand responseCommand) |
void |
setSendRequestOK(boolean sendRequestOK) |
String |
toString() |
RemotingCommand |
waitResponse(long timeoutMillis) |
public ResponseFuture(int opaque,
long timeoutMillis,
InvokeCallback invokeCallback,
SemaphoreReleaseOnlyOnce once)
public void executeInvokeCallback()
public void release()
public boolean isTimeout()
public RemotingCommand waitResponse(long timeoutMillis) throws InterruptedException
public void putResponse(RemotingCommand responseCommand)
public long getBeginTimestamp()
public boolean isSendRequestOK()
public void setSendRequestOK(boolean sendRequestOK)
public long getTimeoutMillis()
public InvokeCallback getInvokeCallback()
public Throwable getCause()
public void setCause(Throwable cause)
public RemotingCommand getResponseCommand()
public void setResponseCommand(RemotingCommand responseCommand)
public int getOpaque()
Copyright © 2012–2016. All rights reserved.