public final class ThreadOnExitAction extends Object implements PrivilegedAction<Boolean>
Constructor and Description |
---|
ThreadOnExitAction(Runnable hook)
Construct a new instance.
|
public ThreadOnExitAction(Runnable hook)
hook
- the hook to use (must not be null
)public Boolean run()
JBossThread.onExit(Runnable)
.run
in interface PrivilegedAction<Boolean>
Boolean.TRUE
if JBossThread.onExit(Runnable)
returned true
, Boolean.FALSE
otherwiseCopyright © 2023 JBoss by Red Hat. All rights reserved.