com.ibm.jvm
Class InterruptibleLockContext
- java.lang.Object
com.ibm.jvm.InterruptibleLockContext
All implemented interfaces:
- public class InterruptibleLockContext
- extends java.lang.Object
- implements InterruptibleContext
InterruptibleLockContext is a utility class for interrupting synchronization calls.
Constructor Summary
| Constructor and Description |
|---|
InterruptibleLockContext()
Create the
InterruptibleLockContext Object and associate the current
OS thread with this object.
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
isBlocked()
Checks to see if the OS thread is blocked in a synchronization call.
|
|
unblock()
Break the OS thread out of the synchronization call.
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
InterruptibleLockContext
- public InterruptibleLockContext( )
Method Detail
isBlocked
- public boolean isBlocked()
Checks to see if the OS thread is blocked in a synchronization call.
Specified by:
isBlocked in interface InterruptibleContext
Returns:
true if the OS thread is blocked false otherwise. unblock
- public void unblock()
Break the OS thread out of the synchronization call.
Specified by:
unblock in interface InterruptibleContext
InterruptibleLockContextObject and associate the current OS thread with this object.