|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.scheduling.commonj.DelegatingWork
public class DelegatingWork
Simple Work adapter that delegates to a given Runnable.
commonj.work.Work
,
Runnable
Field Summary | |
---|---|
private java.lang.Runnable |
delegate
|
Constructor Summary | |
---|---|
DelegatingWork(java.lang.Runnable delegate)
Create a new DelegatingWork. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.lang.Runnable delegate
Constructor Detail |
---|
public DelegatingWork(java.lang.Runnable delegate)
delegate
- the Runnable implementation to delegate to
(may be a SchedulingAwareRunnable for extended support)SchedulingAwareRunnable
,
isDaemon()
Method Detail |
---|
public final java.lang.Runnable getDelegate()
public void run()
public boolean isDaemon()
SchedulingAwareRunnable.isLongLived()
,
if available.
public void release()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |