Method Summary |
|
public void | clear() Clear the transactional state of this resource holder. |
public Date | getDeadline() Return the expiration deadline of this object. |
public long | getTimeToLiveInMillis() Return the time to live for this object in milliseconds. |
public int | getTimeToLiveInSeconds() Return the time to live for this object in seconds.
Rounds up eagerly, e.g. |
public boolean | hasTimeout() Return whether this object has an associated timeout. |
public boolean | isOpen() Return whether there are still open references to this holder. |
public boolean | isRollbackOnly() Return whether the resource transaction is marked as rollback-only. |
public boolean | isSynchronizedWithTransaction() Return whether the resource is synchronized with a transaction. |
public void | released() Decrease the reference count by one because the holder has been released
(i.e. |
public void | requested() Increase the reference count by one because the holder has been requested
(i.e. |
public void | reset() Reset this resource holder - transactional state as well as reference count. |
public void | setRollbackOnly() Mark the resource transaction as rollback-only. |
public void | setSynchronizedWithTransaction(boolean synchronizedWithTransaction) Mark the resource as synchronized with a transaction. |
public void | setTimeoutInMillis(long millis) Set the timeout for this object in milliseconds. |
public void | setTimeoutInSeconds(int seconds) Set the timeout for this object in seconds. |