T
- Proto message type@NotThreadSafe public class OperationContext<T extends com.google.protobuf.GeneratedMessageV3.Builder<?>> extends Object
Constructor and Description |
---|
OperationContext(T optionsBuilder)
Creates an instance with given proto message.
|
OperationContext(T optionsBuilder,
CallTracker callTracker)
Creates an instance with given proto message.
|
Modifier and Type | Method and Description |
---|---|
T |
getOptions() |
boolean |
isCancelled()
TODO(ggezer): Make the call-tracker infra note the source of cancellation.
|
public OperationContext(T optionsBuilder)
optionsBuilder
- Internal proto message builder instancepublic OperationContext(T optionsBuilder, CallTracker callTracker)
optionsBuilder
- Internal proto message builder instancecallTracker
- client call tracker, or null
if no tracking is desiredpublic T getOptions()
public boolean isCancelled()
true
if the call is cancelled by the clientCopyright © 2023. All Rights Reserved.