com.ibm.websphere.interrupt
Interface InterruptibleThreadInfrastructure
-
public interface InterruptibleThreadInfrastructureA WebSphere programming model extension which allows connectors or application components register an object that may be driven if the thread which registered the object exceeds a time threshold defined by the application server.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringITI_LOCThe location in JNDI where this object can be obtained.
-
Method Summary
Methods Modifier and Type Method and Description voidderegister(InterruptObject odi)Deregisters anInterruptObjectfrom the current thread of execution.booleanisODISupported()Indicates if the InterruptibleThreadInfrastructure function is supported within the current runtime environment.voidregister(InterruptObject odi)Registers anInterruptObjectwith 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:
- Constant Field Values
-
-
Method Detail
-
register
void register(InterruptObject odi) throws InterruptRegistrationException
Registers anInterruptObjectwith the request running on the current thread of execution. TheInterruptObjectis placed on a stack, and should be removed by callingderegisterwhen the caller has finished processing.- Parameters:
odi- TheInterruptObjectto 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 anInterruptObjectfrom the current thread of execution. No errors are generated if theInterruptObjectis not found in the stack for this thread.- Parameters:
odi- TheInterruptObjectto deregister.
-
isODISupported
boolean isODISupported()
Indicates if the InterruptibleThreadInfrastructure function is supported within the current runtime environment.- Returns:
trueifInterruptObjectregistration is supported on the current thread,falseifInterruptObjectregistration is not supported on the current thread.
-
-