| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Convenient base class for resource holders.
Features rollback-only support for nested Hibernate transactions. Can expire after a certain number of seconds or milliseconds, to determine transactional timeouts.
| Method Summary | |
Date | getDeadline()Return the expiration deadline of this object. |
long | getTimeToLiveInMillis()Return the time to live for this object in milliseconds. |
int | getTimeToLiveInSeconds()Return the time to live for this object in seconds. |
boolean | isRollbackOnly()Return whether the resource transaction is marked as rollback-only. |
void | setRollbackOnly()Mark the resource transaction as rollback-only. |
void | setTimeoutInMillis(long millis)Set the timeout for this object in milliseconds. |
void | setTimeoutInSeconds(int seconds)Set the timeout for this object in seconds. |
| Method Detail |
public Date getDeadline()
public long getTimeToLiveInMillis()
public int getTimeToLiveInSeconds()
public boolean isRollbackOnly()
public void setRollbackOnly()
public void setTimeoutInMillis(long millis)
public void setTimeoutInSeconds(int seconds)
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||