Class SynchronizationAdapter
java.lang.Object
org.infinispan.transaction.impl.AbstractEnlistmentAdapter
org.infinispan.transaction.synchronization.SynchronizationAdapter
- All Implemented Interfaces:
javax.transaction.Synchronization
,AsyncSynchronization
public class SynchronizationAdapter
extends AbstractEnlistmentAdapter
implements javax.transaction.Synchronization, AsyncSynchronization
Synchronization
implementation for integrating with the TM. See ISPN-888
for more information on this.- Since:
- 5.0
- Author:
- Mircea.Markus@jboss.com
-
Constructor Summary
ConstructorDescriptionSynchronizationAdapter
(LocalTransaction localTransaction, TransactionTable txTable) -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterCompletion
(int status) asyncAfterCompletion
(int status) void
boolean
toString()
Methods inherited from class org.infinispan.transaction.impl.AbstractEnlistmentAdapter
hashCode
-
Constructor Details
-
SynchronizationAdapter
-
-
Method Details
-
beforeCompletion
public void beforeCompletion()- Specified by:
beforeCompletion
in interfacejavax.transaction.Synchronization
-
afterCompletion
public void afterCompletion(int status) - Specified by:
afterCompletion
in interfacejavax.transaction.Synchronization
-
toString
-
equals
-
asyncBeforeCompletion
- Specified by:
asyncBeforeCompletion
in interfaceAsyncSynchronization
- Returns:
- A
CompletionStage
which is completed with the result ofSynchronization.beforeCompletion()
. - See Also:
-
Synchronization.beforeCompletion()
-
asyncAfterCompletion
- Specified by:
asyncAfterCompletion
in interfaceAsyncSynchronization
- Returns:
- A
CompletionStage
which is completed with the result ofSynchronization.afterCompletion(int)
. - See Also:
-
Synchronization.afterCompletion(int)
-