public class ResponseFuture extends Object
| 构造器和说明 |
|---|
ResponseFuture(long timeoutMillis,
InvokeCallback invokeCallback,
SemaphoreReleaseOnlyOnce once) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
executeInvokeCallback() |
long |
getBeginTimestamp() |
Throwable |
getCause() |
String |
getErrorMsg(String prefix) |
InvokeCallback |
getInvokeCallback() |
Cmq.CMQProto |
getResponseCommand() |
long |
getTimeoutMillis() |
boolean |
isSendRequestOK() |
boolean |
isTimeout() |
void |
putResponse(Cmq.CMQProto responseCommand) |
void |
release() |
void |
setCause(Throwable cause) |
void |
setResponseCommand(Cmq.CMQProto responseCommand) |
void |
setSendRequestOK(boolean sendRequestOK) |
String |
toString() |
Cmq.CMQProto |
waitResponse(long timeoutMillis) |
public ResponseFuture(long timeoutMillis,
InvokeCallback invokeCallback,
SemaphoreReleaseOnlyOnce once)
public void executeInvokeCallback()
public void release()
public boolean isTimeout()
public Cmq.CMQProto waitResponse(long timeoutMillis) throws InterruptedException
public void putResponse(Cmq.CMQProto 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 Cmq.CMQProto getResponseCommand()
public void setResponseCommand(Cmq.CMQProto responseCommand)
Copyright © 2020. All rights reserved.