com.ibm.websphere.interrupt
Interface InterruptObject
- public interface InterruptObject
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getDisplayInfo()
Displays additional details about the state of this interrupt object.
|
|
getName()
Displays the name of this interrupt object.
|
|
interrupt()
Called by the application server when the request running on the thread
which registered this object exceeds a time threshold.
|
|
queryTried()
Called by the application server to determine whether or not this object
has been driven to interrupt the work running on the thread of execution.
|
Method Detail
interrupt
- boolean interrupt()
Called by the application server when the request running on the thread
which registered this object exceeds a time threshold. This method will
be driven on a separate thread, and should attempt to interrupt the work
running on the thread which registered this object.
The goal of this method is to stop the hung and/or looping work from
executing, so that control can return to the application server. The
application server can then respond appropriately to the client, and
issue a new request on this thread.
Returns:
true
if the work was successfully interrupted,
false
if not. queryTried
- boolean queryTried()
Called by the application server to determine whether or not this object
has been driven to interrupt the work running on the thread of execution.
Returns:
true
if the interrupt method was called,
false
if not. getName
- java.lang.String getName()
Displays the name of this interrupt object. The text will identify this
object on the MVS console during the display command. Often this will
be the component name for which the object is registered (for example,
the Object Transaction Service might return "OTS").
Returns:
The name of this interrupt object.
getDisplayInfo
- java.lang.String getDisplayInfo( )
Displays additional details about the state of this interrupt object.
The contents of the message are implementation specific, but they will
be displayed on the MVS console during the display command, so they
should be as concise as possible. It is usually useful to display
the state of the object, as well as any information about what operations
are under its control (such as which outbound connection, or which
transaction).
Returns:
A string describing the state of this interrupt object, or
null if no additional information is available.