|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ILockContainer
Interface defines methods which must be offered by a lock container. What a lock container is concrete, depends on the implementation, but normally it should be some collection of acquired locks.
| Method Summary | |
|---|---|
void |
clear()
Releases all locks that this lock container holds. |
String |
getName()
Returns a name of the lock container, for example "lock-transaction-X". |
boolean |
isActive()
Returns true if this lock container is active which means it was not yet released via release(). |
void |
release()
Releases all resources associated with this lock container. |
| Method Detail |
|---|
void clear()
throws LockOperationException
release().
The container stays active after the operation.
LockOperationException - if an exception occurs during releasing locks and nested
containers.
void release()
throws LockOperationException
LockOperationExceptionboolean isActive()
release(). False else. An inactive lock container
should be disconnected from all types of lock operations.
String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||