public class

DelegatingWork

extends Object
java.lang.Object
   ↳ org.springframework.scheduling.commonj.DelegatingWork

Class Overview

Simple Work adapter that delegates to a given Runnable.

See Also

Summary

Public Constructors
DelegatingWork(Runnable delegate)
Create a new DelegatingWork.
Public Methods
final Runnable getDelegate()
Return the wrapped Runnable implementation.
boolean isDaemon()
This implementation delegates to 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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DelegatingWork (Runnable delegate)

Create a new DelegatingWork.

Parameters
delegate the Runnable implementation to delegate to (may be a SchedulingAwareRunnable for extended support)

Public Methods

public final Runnable getDelegate ()

Return the wrapped Runnable implementation.

public boolean isDaemon ()

This implementation delegates to isLongLived(), if available.

public void release ()

This implementation is empty, since we expect the Runnable to terminate based on some specific shutdown signal.

public void run ()

Delegates execution to the underlying Runnable.