public class DelegatingWork
extends java.lang.Object
implements commonj.work.Work
Work,
Runnable| Constructor and Description |
|---|
DelegatingWork(java.lang.Runnable delegate)
Create a new DelegatingWork.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Runnable |
getDelegate()
Return the wrapped Runnable implementation.
|
boolean |
isDaemon()
This implementation delegates to
SchedulingAwareRunnable.isLongLived(),
if available. |
void |
release()
This implementation is empty, since we expect the Runnable
to terminate based on some specific shutdown signal.
|
void |
run()
Delegates execution to the underlying Runnable.
|
public DelegatingWork(java.lang.Runnable delegate)
delegate - the Runnable implementation to delegate to
(may be a SchedulingAwareRunnable for extended support)SchedulingAwareRunnable,
isDaemon()public final java.lang.Runnable getDelegate()
public void run()
run in interface java.lang.Runnablepublic boolean isDaemon()
SchedulingAwareRunnable.isLongLived(),
if available.isDaemon in interface commonj.work.Workpublic void release()
release in interface commonj.work.Work