Class ThreadOnExitAction
java.lang.Object
org.jboss.threads.ThreadOnExitAction
- All Implemented Interfaces:
PrivilegedAction<Boolean>
A privileged action which allows setting a thread on-exit action.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ThreadOnExitAction
Construct a new instance.- Parameters:
hook- the hook to use (must not benull)
-
-
Method Details
-
run
Delegate toJBossThread.onExit(Runnable).- Specified by:
runin interfacePrivilegedAction<Boolean>- Returns:
Boolean.TRUEifJBossThread.onExit(Runnable)returnedtrue,Boolean.FALSEotherwise
-