public interface SessionManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
activate(String uri,
String operation)
This method is a guard condition for instrumentation rules, used
to determine whether the invoker should be permitted to create
and record a node as part of a trace fragment.
|
boolean |
activate(String uri,
String operation,
String id)
This method is a guard condition for Consumer based instrumentation
rules, used to determine whether the invoker should be permitted to
create and record a Consumer as part of a trace fragment.
|
void |
assertComplete()
This method asserts that the current thread of execution is complete.
|
void |
completeCorrelation(String id,
boolean allowSpawn)
This method ends the correlation between the current thread of execution and another
associated with the supplied id.
|
void |
correlate(String id)
This method associates the current thread of execution with the session associated
with the supplied correlation id.
|
void |
deactivate()
This method deactivates an active session.
|
Object |
getState(Object context,
String name,
boolean session)
This method returns the state associated with the name and optional
context.
|
void |
ignoreNode()
This method indicates that the current node can be ignored if handled out of
order.
|
void |
initiateCorrelation(String id)
This method initiates a correlation between this thread of execution and one or more based
on the supplied id.
|
boolean |
isActive()
This method determines if there is an active session associated with
this thread of execution.
|
boolean |
isCorrelated(String id)
This method identifies whether a correlation with the supplied id is currently active
(i.e.
|
void |
releaseNode(String id)
This method indicates that the identified node, for this thread of execution, should
be released.
|
void |
retainNode(String id)
This method indicates that the current node, for this thread of execution, should
be retained temporarily pending further changes.
|
Node |
retrieveNode(String id)
This method returns the node associated, for this thread of execution, identified
by the supplied id.
|
void |
setState(Object context,
String name,
Object value,
boolean session)
This method stores state information associated with the name and optional
context.
|
void |
suppress()
This method suppressed recording of any child nodes under the current business
transaction fragment node.
|
void |
unlink()
Unlink the current "linked" thread of execution from the target thread.
|
boolean activate(String uri, String operation, String id)
uri - The URIoperation - The optional operationid - The idboolean activate(String uri, String operation)
uri - The URIoperation - The optional operationboolean isActive()
void deactivate()
void retainNode(String id)
id - The identifier used to later on to identify the nodevoid releaseNode(String id)
id - The identifier used to identify the nodeNode retrieveNode(String id)
id - The identifier used to identify the nodevoid initiateCorrelation(String id)
id - The idboolean isCorrelated(String id)
id - The idvoid correlate(String id)
id - The id associated with the target thread of executionvoid completeCorrelation(String id, boolean allowSpawn)
id - The id associated with the target thread of executionallowSpawn - Determine if completing correlation can spawn fragment if requiredvoid unlink()
void suppress()
void ignoreNode()
void assertComplete()
void setState(Object context, String name, Object value, boolean session)
context - The optional contextname - The namevalue - The valuesession - Whether related to sessionCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.