com.ibm.jvm
Class InterruptibleIOContext

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

public class InterruptibleIOContext
extends java.lang.Object
implements InterruptibleContext

InterruptibleIOContext is a utility class for interrupting networking calls.


Constructor Summary
InterruptibleIOContext()
          Create the InterruptibleIOContext Object.
 
Method Summary
 boolean isBlocked()
          Checks to see if the OS thread is blocked in a networking call.
 void register()
          Associate the current OS thread with this object.
 void unblock()
          Break the associated OS thread out of the networking call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterruptibleIOContext

public InterruptibleIOContext()
Create the InterruptibleIOContext Object.

Method Detail

register

public void register()
Associate the current OS thread with this object.


isBlocked

public boolean isBlocked()
Checks to see if the OS thread is blocked in a networking call.

Specified by:
isBlocked in interface InterruptibleContext
Returns:
true if the OS thread is blocked false otherwise.

unblock

public void unblock()
Break the associated OS thread out of the networking call.

Specified by:
unblock in interface InterruptibleContext