com.ibm.websphere.interrupt
Interface InterruptibleThreadInfrastructure
- public interface InterruptibleThreadInfrastructure
Field Summary
Modifier and Type | Field and Description |
---|---|
|
ITI_LOC
The location in JNDI where this object can be obtained.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
deregister(InterruptObject odi)
Deregisters an
InterruptObject
from the current thread of execution.
|
|
isODISupported()
Indicates if the InterruptibleThreadInfrastructure function is supported
within the current runtime environment.
|
|
register(InterruptObject odi)
Registers an
InterruptObject
with the request running on the current thread of execution.
|
Field Detail
ITI_LOC
- static final java.lang.String ITI_LOC
The location in JNDI where this object can be obtained.
See Also:
Method Detail
register
- void register(InterruptObject odi)
- throws InterruptRegistrationException
Registers an
InterruptObject
with the request running on the current thread of execution. The
InterruptObject
is placed on a stack, and should be removed by calling
deregister
when the caller has finished processing.
Parameters:
odi
- The
InterruptObject
to
register. Throws:
InterruptRegistrationException
- Thrown if the interrupt object
could not be registered. The cause (if known) will be linked to this
exception. deregister
- void deregister(InterruptObject odi)
Deregisters an
InterruptObject
from the current thread of execution. No errors are generated if the
InterruptObject
is not found in the stack for this thread.
Parameters:
odi
- The
InterruptObject
to
deregister. isODISupported
- boolean isODISupported()
Indicates if the InterruptibleThreadInfrastructure function is supported
within the current runtime environment.
Returns:
true
if
InterruptObject
registration is supported on the
current thread, false
if
InterruptObject
registration is not supported
on the current thread.