|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.txbridge.ba.compensation.CompensationManagerProvider
public class CompensationManagerProvider
This component is responsible for ensuring that a proper Compensation Manager is provided during execution of a service or a compensation action. It associates compensation managers with proper threads of execution.
| Field Summary | |
|---|---|
private static java.util.concurrent.ConcurrentMap<java.lang.Long,CompensationManager> |
cmList
|
private static CompensationManagerProvider |
cmp
|
private static org.apache.log4j.Logger |
log
|
| Constructor Summary | |
|---|---|
private |
CompensationManagerProvider()
|
| Method Summary | |
|---|---|
void |
associateCompensationManager(java.lang.Long thread,
CompensationManager cmp)
This method associates a compensation manager with a given thread of execution. |
CompensationManager |
getCompensationManager(java.lang.Long thread)
This method returns the compensation manager object associated to a certain thread of execution. |
static CompensationManagerProvider |
getSingletonInstance()
Returns the instance fo a compensation manager provider. |
void |
removeCompensationManager(java.lang.Long thread)
This method removes the association of a thread and a compensation manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.apache.log4j.Logger log
private static volatile CompensationManagerProvider cmp
private static java.util.concurrent.ConcurrentMap<java.lang.Long,CompensationManager> cmList
| Constructor Detail |
|---|
private CompensationManagerProvider()
| Method Detail |
|---|
public static CompensationManagerProvider getSingletonInstance()
public void associateCompensationManager(java.lang.Long thread,
CompensationManager cmp)
thread - is the thread for which the compensation manager should be associated.cmp - is the compensation manager, which should be associated.public CompensationManager getCompensationManager(java.lang.Long thread)
thread - thread ID for which the compensation manager should be returned.
public void removeCompensationManager(java.lang.Long thread)
thread - is the thread for which the associaction should be removed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||