public interface StoppableTasklet extends Tasklet
Tasklet interface to allow users to
add logic for stopping a tasklet. It is up to each implementation
as to how the stop will behave. The only guarantee provided by the
framework is that a call to
attempt to call the stop method on any currently running
StoppableTasklet. The call to
be from a thread other than the thread executing
so the appropriate thread safety and visibility controls should be
put in place.
Tasklet is executing
within has been requested to stop.