|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.step.tasklet.CallableTaskletAdapter
public class CallableTaskletAdapter
Adapts a Callable<RepeatStatus> to the Tasklet
interface.
| Constructor Summary | |
|---|---|
CallableTaskletAdapter()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Assert that the callable is set. |
org.springframework.batch.repeat.RepeatStatus |
execute(StepContribution contribution,
ChunkContext chunkContext)
Execute the provided Callable and return its RepeatStatus. |
void |
setCallable(java.util.concurrent.Callable<org.springframework.batch.repeat.RepeatStatus> callable)
Public setter for the Callable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CallableTaskletAdapter()
| Method Detail |
|---|
public void setCallable(java.util.concurrent.Callable<org.springframework.batch.repeat.RepeatStatus> callable)
Callable.
callable - the Callable to set
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.ExceptionInitializingBean.afterPropertiesSet()
public org.springframework.batch.repeat.RepeatStatus execute(StepContribution contribution,
ChunkContext chunkContext)
throws java.lang.Exception
RepeatStatus. Ignores
the StepContribution and the attributes.
execute in interface Taskletcontribution - mutable state to be passed back to update the current
step executionchunkContext - attributes shared between invocations but not between
restarts
RepeatStatus indicating whether processing is
continuable.
java.lang.ExceptionTasklet.execute(StepContribution, ChunkContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||