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 |
|---|---|
OperationContext |
addLinks(Link... links)
Associates links with the current operation to be propagated back to the caller.
|
OperationContext |
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.
|
java.util.List<Link> |
getLinks()
Get a read only list of links attached to this context.
|
@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.
|
OperationContext |
removeMethodCancellationListener(OperationMethodCancellationListener listener)
Remove a listener, if present, for method cancellation using hash code.
|
OperationContext |
setLinks(Link... links)
Associates links with the current operation to be propagated back to the caller.
|
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 java.util.List<Link> getLinks()
public boolean isMethodCancelled()
public @Nullable java.lang.String getMethodCancellationReason()
public OperationContext addMethodCancellationListener(OperationMethodCancellationListener listener)
public OperationContext addLinks(Link... links)
public OperationContext setLinks(Link... links)
addLinks(Link...) to avoid accidental override. Links will only be
attached on successful responses.public OperationContext 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