com.ibm.jvm
Class InterruptibleIOContext
- java.lang.Object
com.ibm.jvm.InterruptibleIOContext
All implemented interfaces:
- public class InterruptibleIOContext
- extends java.lang.Object
- implements InterruptibleContext
InterruptibleIOContext
is a utility class for interrupting networking calls.
Constructor Summary
Constructor and Description |
---|
InterruptibleIOContext()
Create the
InterruptibleIOContext Object.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
isBlocked()
Checks to see if the OS thread is blocked in a networking call.
|
|
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()
Method Detail
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
InterruptibleIOContext
Object.