public class CallerRequestContext<TRES extends com.google.protobuf.GeneratedMessageV3,TPROG extends com.google.protobuf.GeneratedMessageV3> extends RequestContext
| Constructor and Description |
|---|
CallerRequestContext(EventChannel eventChannel,
java.lang.String streamId,
TRES responseDefaultInstance,
TPROG progressDefaultInstance,
EventChannel.ProtoHandler<TPROG> progressHandler) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Future<TRES> |
getFuture() |
void |
onCompleteMessage(Frames.EventComplete payload) |
void |
onError(java.lang.Throwable e) |
void |
onProgressMessage(Frames.EventProgress payload) |
getStreamIdpublic CallerRequestContext(EventChannel eventChannel, java.lang.String streamId, TRES responseDefaultInstance, TPROG progressDefaultInstance, EventChannel.ProtoHandler<TPROG> progressHandler)
public java.util.concurrent.Future<TRES> getFuture()
public void onProgressMessage(Frames.EventProgress payload) throws java.io.IOException
onProgressMessage in class RequestContextjava.io.IOExceptionpublic void onCompleteMessage(Frames.EventComplete payload) throws java.io.IOException
onCompleteMessage in class RequestContextjava.io.IOExceptionpublic void onError(java.lang.Throwable e)
onError in class RequestContext