Package org.hibernate.cache.spi
Class AbstractCacheTransactionSynchronization
- java.lang.Object
-
- org.hibernate.cache.spi.AbstractCacheTransactionSynchronization
-
- All Implemented Interfaces:
CacheTransactionSynchronization
- Direct Known Subclasses:
StandardCacheTransactionSynchronization
public abstract class AbstractCacheTransactionSynchronization extends Object implements CacheTransactionSynchronization
-
-
Constructor Summary
Constructors Constructor Description AbstractCacheTransactionSynchronization(RegionFactory regionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description long
getCachingTimestamp()
What is the start time of this context object?long
getCurrentTransactionStartTimestamp()
Deprecated, for removal: This API element is subject to removal in a future version.void
transactionCompleted(boolean successful)
Callback that the underling resource transaction to which the owning Session was joined is in the "completed" stage.void
transactionCompleting()
Callback that the underling resource transaction to which the owning Session was joined is in the beginning stages of completing.void
transactionJoined()
Callback that owning Session has become joined to a resource transaction.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.cache.spi.CacheTransactionSynchronization
transactionResumed, transactionSuspended
-
-
-
-
Constructor Detail
-
AbstractCacheTransactionSynchronization
public AbstractCacheTransactionSynchronization(RegionFactory regionFactory)
-
-
Method Detail
-
getCurrentTransactionStartTimestamp
@Deprecated(forRemoval=true) public long getCurrentTransactionStartTimestamp()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CacheTransactionSynchronization
What is the start time of this context object?- Specified by:
getCurrentTransactionStartTimestamp
in interfaceCacheTransactionSynchronization
-
getCachingTimestamp
public long getCachingTimestamp()
Description copied from interface:CacheTransactionSynchronization
What is the start time of this context object?- Specified by:
getCachingTimestamp
in interfaceCacheTransactionSynchronization
-
transactionJoined
public final void transactionJoined()
Description copied from interface:CacheTransactionSynchronization
Callback that owning Session has become joined to a resource transaction.- Specified by:
transactionJoined
in interfaceCacheTransactionSynchronization
-
transactionCompleting
public final void transactionCompleting()
Description copied from interface:CacheTransactionSynchronization
Callback that the underling resource transaction to which the owning Session was joined is in the beginning stages of completing. Note that this is only called for successful "begin completion" of the underlying resource transaction (not rolling-back, marked-for-rollback, etc)- Specified by:
transactionCompleting
in interfaceCacheTransactionSynchronization
-
transactionCompleted
public void transactionCompleted(boolean successful)
Description copied from interface:CacheTransactionSynchronization
Callback that the underling resource transaction to which the owning Session was joined is in the "completed" stage. This method is called regardless of success or failure of the transaction - the outcome is passed as a boolean.- Specified by:
transactionCompleted
in interfaceCacheTransactionSynchronization
- Parameters:
successful
- Was the resource transaction successful?
-
-