com.ibm.jvm
Class InterruptibleLockContext

java.lang.Object
  extended by com.ibm.jvm.InterruptibleLockContext
All Implemented Interfaces:
InterruptibleContext

public class InterruptibleLockContext
extends java.lang.Object
implements InterruptibleContext

InterruptibleLockContext is a utility class for interrupting synchronization calls.


Constructor Summary
InterruptibleLockContext()
          Create the InterruptibleLockContext Object and associate the current OS thread with this object.
 
Method Summary
 boolean isBlocked()
          Checks to see if the OS thread is blocked in a synchronization call.
 void 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()
Create the InterruptibleLockContext Object and associate the current OS thread with this object.

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