public final class Activations extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROP_NAME_ACTIVATION_ID
The name of the activation identifier property in an execution context.
|
Modifier and Type | Method and Description |
---|---|
static <T> String |
getActivationId(AsyncContext<T> asyncContext)
Retrieves an activation identifier from the specified context.
|
static String |
getActivationId(ExecutionContext.ApplicationData applicationData)
Retrieves an activation identifier from the specified application data
object.
|
static String |
getActivationId(ExecutionContext executionContext)
Retrieves an activation identifier from the specified context.
|
static String |
getActivationId(InvocationConfig invocationConfig)
Retrieves an activation identifier from the specified configuration.
|
static String |
getActivationId(InvocationContext invocationContext)
Retrieves an activation identifier from the specified context.
|
static String |
newActivationId()
Generates a new activation identifier as a UUID.
|
static ExecutionContext.ApplicationData |
newApplicationData()
Creates a new application data with an activation identifier, generated
by
newActivationId() . |
static ExecutionContext.ApplicationData |
newApplicationData(String activationId)
Creates a new application data with the specified activation identifier.
|
static ExecutionContext |
newExecutionContext()
Creates a new execution context with an activation identifier, generated
by
newActivationId() . |
static ExecutionContext |
newExecutionContext(String activationId)
Creates a new execution context with the specified activation
identifier.
|
static InvocationConfig |
newInvocationConfig()
Creates a new invocation configuration with an activation identifier,
generated by
newActivationId() . |
static InvocationConfig |
newInvocationConfig(String activationId)
Creates a new invocation configuration with the specified activation
identifier.
|
static ExecutionContext.ApplicationData |
setActivationId(ExecutionContext.ApplicationData appData,
String activationId)
Creates a copy of the specified application data with the specified
activation identifier.
|
static ExecutionContext |
setActivationId(ExecutionContext ctx,
String activationId)
Creates a copy of the specified execution context with the specified
activation identifier.
|
static InvocationConfig |
setActivationId(InvocationConfig ctx,
String activationId)
Creates a copy of the specified invocation configuration with the
specified activation identifier.
|
public static final String PROP_NAME_ACTIVATION_ID
public static String getActivationId(InvocationConfig invocationConfig)
invocationConfig
- invocation configuration; can be
null
null
if no identifierpublic static <T> String getActivationId(AsyncContext<T> asyncContext)
asyncContext
- async context; can be null
null
if no identifierpublic static String getActivationId(InvocationContext invocationContext)
invocationContext
- invocation context; can be null
null
if no identifierpublic static String getActivationId(ExecutionContext executionContext)
executionContext
- execution context; can be null
null
if no identifierpublic static String getActivationId(ExecutionContext.ApplicationData applicationData)
applicationData
- application data; can be null
null
if no identifierpublic static String newActivationId()
public static ExecutionContext.ApplicationData setActivationId(ExecutionContext.ApplicationData appData, String activationId)
appData
- application data; can be null
activationId
- activation identifier; must not be null
public static ExecutionContext.ApplicationData newApplicationData(String activationId)
activationId
- activation identifier; must not be null
public static ExecutionContext.ApplicationData newApplicationData()
newActivationId()
.public static ExecutionContext setActivationId(ExecutionContext ctx, String activationId)
ctx
- execution context; can be null
activationId
- activation identifier; must not be null
public static ExecutionContext newExecutionContext(String activationId)
activationId
- activation identifier; must not be null
public static ExecutionContext newExecutionContext()
newActivationId()
.public static InvocationConfig setActivationId(InvocationConfig ctx, String activationId)
ctx
- invocation configuration; can be null
activationId
- activation identifier; must not be null
public static InvocationConfig newInvocationConfig(String activationId)
activationId
- activation identifier; must not be null
public static InvocationConfig newInvocationConfig()
newActivationId()
.Copyright © 2015. All Rights Reserved.