java.lang.Object | |
↳ | org.springframework.transaction.support.ResourceHolderSupport |
Known Direct Subclasses |
Convenient base class for resource holders.
Features rollback-only support for nested transactions. Can expire after a certain number of seconds or milliseconds, to determine transactional timeouts.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clear the transactional state of this resource holder.
| |||||||||||
Return the expiration deadline of this object.
| |||||||||||
Return the time to live for this object in milliseconds.
| |||||||||||
Return the time to live for this object in seconds.
| |||||||||||
Return whether this object has an associated timeout.
| |||||||||||
Return whether there are still open references to this holder.
| |||||||||||
Return whether the resource transaction is marked as rollback-only.
| |||||||||||
Return whether the resource is synchronized with a transaction.
| |||||||||||
Determine whether this holder is considere as 'void',
i.e.
| |||||||||||
Decrease the reference count by one because the holder has been released
(i.e.
| |||||||||||
Increase the reference count by one because the holder has been requested
(i.e.
| |||||||||||
Reset this resource holder - transactional state as well as reference count.
| |||||||||||
Mark the resource transaction as rollback-only.
| |||||||||||
Mark the resource as synchronized with a transaction.
| |||||||||||
Set the timeout for this object in milliseconds.
| |||||||||||
Set the timeout for this object in seconds.
| |||||||||||
Notify this holder that it has been unbound from transaction synchronization.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.transaction.support.ResourceHolder
|
Clear the transactional state of this resource holder.
Return the expiration deadline of this object.
Return the time to live for this object in milliseconds.
TransactionTimedOutException | if the deadline has already been reached |
---|
Return the time to live for this object in seconds. Rounds up eagerly, e.g. 9.00001 still to 10.
TransactionTimedOutException | if the deadline has already been reached |
---|
Return whether this object has an associated timeout.
Return whether there are still open references to this holder.
Return whether the resource transaction is marked as rollback-only.
Return whether the resource is synchronized with a transaction.
Determine whether this holder is considere as 'void', i.e. as a leftover from a previous thread.
Decrease the reference count by one because the holder has been released (i.e. someone released the resource held by it).
Increase the reference count by one because the holder has been requested (i.e. someone requested the resource held by it).
Reset this resource holder - transactional state as well as reference count.
Mark the resource transaction as rollback-only.
Mark the resource as synchronized with a transaction.
Set the timeout for this object in milliseconds.
millis | number of milliseconds until expiration |
---|
Set the timeout for this object in seconds.
seconds | number of seconds until expiration |
---|
Notify this holder that it has been unbound from transaction synchronization.