spring-framework / org.springframework.scheduling.commonj / DelegatingWork

DelegatingWork

open class DelegatingWork : Work

Simple Work adapter that delegates to a given Runnable.

Author
Juergen Hoeller

Since
2.0

See Also
commonj.work.Workjava.lang.Runnable

Constructors

<init>

DelegatingWork(delegate: Runnable)

Create a new DelegatingWork.

Functions

getDelegate

fun getDelegate(): Runnable

Return the wrapped Runnable implementation.

isDaemon

open fun isDaemon(): Boolean

This implementation delegates to org.springframework.scheduling.SchedulingAwareRunnable#isLongLived(), if available.

release

open fun release(): Unit

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

run

open fun run(): Unit

Delegates execution to the underlying Runnable.