|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TransactionalReference<E>
The TransactionalReference is responsible for storing an object reference transactional (so that it can be
used in a Transaction.
| Method Summary | |
|---|---|
E |
clear()
Clears the ref and returns the old value of the ref (could be null). |
E |
get()
Gets the current stored ref, or null if no ref is stored. |
E |
getOrAwait()
Gets the current stored ref, or waits until a non null reference becomes available. |
E |
getOrAwaitInterruptibly()
Gets the current stored reference, or waits until a non null references becomes available or until it is is Interrupted. |
boolean |
isNull()
Checks if the ref is null. |
E |
set(E ref)
Sets the current ref. |
| Method Detail |
|---|
E get()
E getOrAwait()
E getOrAwaitInterruptibly()
throws InterruptedException
InterruptedException - if the thread is interrupted while waiting on a reference to come available.E set(E ref)
ref - the ref to set.
E clear()
boolean isNull()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||