ResourceLock implementation.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final ResourceLock |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ResourceLock | acquire()
Implements org. Acquire this resource lock, potentially blocking. |
| public List | getResources()
Implements org. Returns the exclusive resources this lock represents. |
| public boolean | isExclusive()
Implements org. Returns whether this lock requires exclusiveness. |
| public void | release()
Implements org. Release this resource lock. |
| public String |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final ResourceLock INSTANCE | |
| NopLock | back to summary |
|---|---|
| private NopLock() | |
| acquire | back to summary |
|---|---|
| public ResourceLock acquire() Implements org. Doc from org. Acquire this resource lock, potentially blocking.
| |
| getResources | back to summary |
|---|---|
| public List Implements org. Doc from org. Returns the exclusive resources this lock represents.
| |
| isExclusive | back to summary |
|---|---|
| public boolean isExclusive() Implements org. Doc from org. Returns whether this lock requires exclusiveness.
| |
| release | back to summary |
|---|---|
| public void release() Implements org. Doc from org. Release this resource lock.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |