|
||||||||||
| 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.
Work,
Runnable| Constructor Summary | |
|---|---|
DelegatingWork(Runnable delegate)
Create a new DelegatingWork. |
|
| Method Summary | |
|---|---|
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 |
| Constructor Detail |
|---|
public DelegatingWork(Runnable delegate)
delegate - the Runnable implementation to delegate to
(may be a SchedulingAwareRunnable for extended support)SchedulingAwareRunnable,
isDaemon()| Method Detail |
|---|
public final Runnable getDelegate()
public void run()
run in interface Runnablepublic boolean isDaemon()
SchedulingAwareRunnable.isLongLived(),
if available.
isDaemon in interface commonj.work.Workpublic void release()
release in interface commonj.work.Work
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||