public class OperationContext
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OperationContext.Builder
Builder for operation context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMethodCancellationListener(OperationMethodCancellationListener listener)
Add a listener for method cancellation.
|
boolean |
equals(java.lang.Object o) |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
Headers for the call.
|
@Nullable java.lang.String |
getMethodCancellationReason()
Reason the method was cancelled or null if not canceled.
|
java.lang.String |
getOperation()
Operation name for the call.
|
java.lang.String |
getService()
Service name for the call.
|
int |
hashCode() |
boolean |
isMethodCancelled()
True if the method has been cancelled, false if not.
|
static OperationContext.Builder |
newBuilder()
Create a builder.
|
static OperationContext.Builder |
newBuilder(OperationContext context)
Create a builder from an existing context.
|
void |
removeMethodCancellationListener(OperationMethodCancellationListener listener)
Remove a listener, if present, for method cancellation using hash code.
|
java.lang.String |
toString() |
public static OperationContext.Builder newBuilder()
public static OperationContext.Builder newBuilder(OperationContext context)
public java.lang.String getService()
public java.lang.String getOperation()
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
public boolean isMethodCancelled()
public @Nullable java.lang.String getMethodCancellationReason()
public void addMethodCancellationListener(OperationMethodCancellationListener listener)
public void removeMethodCancellationListener(OperationMethodCancellationListener listener)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object