spring-framework / org.springframework.jca.work / DelegatingWork

DelegatingWork

open class DelegatingWork : Work

Simple Work adapter that delegates to a given Runnable.

Author
Juergen Hoeller

Since
2.0.3

See Also
javax.resource.spi.work.WorkRunnable

Constructors

<init>

DelegatingWork(delegate: Runnable)

Create a new DelegatingWork.

Functions

getDelegate

fun getDelegate(): Runnable

Return the wrapped Runnable implementation.

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.