public class ResponseFuture extends Object
Constructor and Description |
---|
ResponseFuture(int opaque,
long timeoutMillis,
InvokeCallback invokeCallback,
SemaphoreReleaseOnlyOnce once) |
Modifier and Type | Method and Description |
---|---|
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
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 © 2014. All Rights Reserved.