Class DelegatingWork
- java.lang.Object
- org.springframework.scheduling.commonj.DelegatingWork
@Deprecated public class DelegatingWork extends Object implements Work
Deprecated.as of 5.1, in favor of EE 7'sDefaultManagedTaskExecutorSimple Work adapter that delegates to a given Runnable.- Since:
- 2.0
- Author:
- Juergen Hoeller
Constructor Summary
Constructors Constructor Description DelegatingWork(Runnable delegate)Deprecated.Create a new DelegatingWork.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RunnablegetDelegate()Deprecated.Return the wrapped Runnable implementation.booleanisDaemon()Deprecated.This implementation delegates toSchedulingAwareRunnable.isLongLived(), if available.voidrelease()Deprecated.This implementation is empty, since we expect the Runnable to terminate based on some specific shutdown signal.voidrun()Deprecated.Delegates execution to the underlying Runnable.
Constructor Detail
DelegatingWork
public DelegatingWork(Runnable delegate)
Deprecated.Create a new DelegatingWork.- Parameters:
delegate- the Runnable implementation to delegate to (may be a SchedulingAwareRunnable for extended support)- See Also:
SchedulingAwareRunnable,isDaemon()
Method Detail
getDelegate
public final Runnable getDelegate()
Deprecated.Return the wrapped Runnable implementation.
run
public void run()
Deprecated.Delegates execution to the underlying Runnable.
isDaemon
public boolean isDaemon()
Deprecated.This implementation delegates toSchedulingAwareRunnable.isLongLived(), if available.