Class RemoteChunkingMasterStepBuilder<I,O>
- java.lang.Object
- org.springframework.batch.core.step.builder.StepBuilderHelper<AbstractTaskletStepBuilder<B>>
- org.springframework.batch.core.step.builder.AbstractTaskletStepBuilder<SimpleStepBuilder<I,O>>
- org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
- org.springframework.batch.core.step.builder.FaultTolerantStepBuilder<I,O>
- org.springframework.batch.integration.chunk.RemoteChunkingMasterStepBuilder<I,O>
- Type Parameters:
I- type of input itemsO- type of output items
public class RemoteChunkingMasterStepBuilder<I,O> extends FaultTolerantStepBuilder<I,O>
Builder for a master step in a remote chunking setup. This builder creates and sets aChunkMessageChannelItemWriteron the master step.If no
messagingTemplateis provided throughmessagingTemplate(MessagingTemplate), this builder will create one and set its default channel to theoutputChannelprovided throughoutputChannel(MessageChannel).If a
messagingTemplateis provided, it is assumed that it is fully configured and that its default channel is set to an output channel on which requests to workers will be sent.- Since:
- 4.1
- Author:
- Mahmoud Ben Hassine
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.batch.core.step.builder.StepBuilderHelper
StepBuilderHelper.CommonStepProperties
Field Summary
Fields inherited from class org.springframework.batch.core.step.builder.AbstractTaskletStepBuilder
chunkListeners
Fields inherited from class org.springframework.batch.core.step.builder.StepBuilderHelper
logger, properties
Constructor Summary
Constructors Constructor Description RemoteChunkingMasterStepBuilder(java.lang.String stepName)Create a newRemoteChunkingMasterStepBuilder.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteChunkingMasterStepBuilder<I,O>allowStartIfComplete(boolean allowStartIfComplete)RemoteChunkingMasterStepBuilder<I,O>backOffPolicy(org.springframework.retry.backoff.BackOffPolicy backOffPolicy)Provide a backoff policy to prevent items being retried immediately (e.g.TaskletStepbuild()Build a masterTaskletStep.RemoteChunkingMasterStepBuilder<I,O>chunk(int chunkSize)Sets the chunk size or commit interval for this step.RemoteChunkingMasterStepBuilder<I,O>chunk(CompletionPolicy completionPolicy)Sets a completion policy for the chunk processing.RemoteChunkingMasterStepBuilder<I,O>chunkOperations(RepeatOperations repeatTemplate)Instead of achunk sizeorcompletion policyyou can provide a complete repeat operations instance that handles the iteration over the item reader.RemoteChunkingMasterStepBuilder<I,O>exceptionHandler(ExceptionHandler exceptionHandler)Sets the exception handler to use in the case of tasklet failures.RemoteChunkingMasterStepBuilder<I,O>inputChannel(org.springframework.messaging.PollableChannel inputChannel)Set the input channel on which replies from workers will be received.RemoteChunkingMasterStepBuilder<I,O>keyGenerator(KeyGenerator keyGenerator)Sets the key generator for identifying retried items.RemoteChunkingMasterStepBuilder<I,O>listener(java.lang.Object listener)Registers objects using the annotation based listener configuration.RemoteChunkingMasterStepBuilder<I,O>listener(ChunkListener listener)Register a chunk listener.RemoteChunkingMasterStepBuilder<I,O>listener(ItemReadListener<? super I> listener)Register an item reader listener.RemoteChunkingMasterStepBuilder<I,O>listener(ItemWriteListener<? super O> listener)Register an item writer listener.RemoteChunkingMasterStepBuilder<I,O>listener(SkipListener<? super I,? super O> listener)Register a skip listener.RemoteChunkingMasterStepBuilder<I,O>listener(StepExecutionListener listener)RemoteChunkingMasterStepBuilder<I,O>listener(org.springframework.retry.RetryListener listener)Register a retry listener.RemoteChunkingMasterStepBuilder<I,O>maxWaitTimeouts(int maxWaitTimeouts)The maximum number of times to wait at the end of a step for a non-null result from the remote workers.RemoteChunkingMasterStepBuilder<I,O>messagingTemplate(org.springframework.integration.core.MessagingTemplate messagingTemplate)Set theMessagingTemplateto use to send data to workers.RemoteChunkingMasterStepBuilder<I,O>noRetry(java.lang.Class<? extends java.lang.Throwable> type)Explicitly ask for an exception (and subclasses) to be excluded from retry.RemoteChunkingMasterStepBuilder<I,O>noRollback(java.lang.Class<? extends java.lang.Throwable> type)Mark this exception as ignorable during item read or processing operations.RemoteChunkingMasterStepBuilder<I,O>noSkip(java.lang.Class<? extends java.lang.Throwable> type)Explicitly prevent certain exceptions (and subclasses) from being skipped.RemoteChunkingMasterStepBuilder<I,O>outputChannel(org.springframework.messaging.MessageChannel outputChannel)Set the output channel on which requests to workers will be sent.RemoteChunkingMasterStepBuilder<I,O>processor(ItemProcessor<? super I,? extends O> itemProcessor)An item processor that processes or transforms a stream of items.RemoteChunkingMasterStepBuilder<I,O>reader(ItemReader<? extends I> reader)An item reader that provides a stream of items.RemoteChunkingMasterStepBuilder<I,O>readerIsTransactionalQueue()Sets a flag to say that the reader is transactional (usually a queue), which is to say that failed items might be rolled back and re-presented in a subsequent transaction.RemoteChunkingMasterStepBuilder<I,O>repository(JobRepository jobRepository)RemoteChunkingMasterStepBuilder<I,O>retry(java.lang.Class<? extends java.lang.Throwable> type)Explicitly ask for an exception (and subclasses) to be retried.RemoteChunkingMasterStepBuilder<I,O>retryContextCache(org.springframework.retry.policy.RetryContextCache retryContextCache)Provide an explicit retry context cache.RemoteChunkingMasterStepBuilder<I,O>retryLimit(int retryLimit)The maximum number of times to try a failed item.RemoteChunkingMasterStepBuilder<I,O>retryPolicy(org.springframework.retry.RetryPolicy retryPolicy)Provide an explicit retry policy instead of using theFaultTolerantStepBuilder.retryLimit(int)and retryable exceptions provided elsewhere.RemoteChunkingMasterStepBuilder<I,O>skip(java.lang.Class<? extends java.lang.Throwable> type)Explicitly request certain exceptions (and subclasses) to be skipped.RemoteChunkingMasterStepBuilder<I,O>skipLimit(int skipLimit)Sets the maximum number of failed items to skip before the step fails.RemoteChunkingMasterStepBuilder<I,O>skipPolicy(SkipPolicy skipPolicy)Provide an explicit policy for managing skips.RemoteChunkingMasterStepBuilder<I,O>startLimit(int startLimit)RemoteChunkingMasterStepBuilder<I,O>stepOperations(RepeatOperations repeatTemplate)Sets the repeat template used for iterating the tasklet execution.RemoteChunkingMasterStepBuilder<I,O>stream(ItemStream stream)Register a stream for callbacks that manage restart data.RemoteChunkingMasterStepBuilder<I,O>throttleLimit(long throttleLimit)Public setter for the throttle limit.RemoteChunkingMasterStepBuilder<I,O>transactionAttribute(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute)Sets the transaction attributes for the tasklet execution.RemoteChunkingMasterStepBuilder<I,O>transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)RemoteChunkingMasterStepBuilder<I,O>writer(ItemWriter<? super O> writer)This method will throw aUnsupportedOperationExceptionsince the item writer of the master step in a remote chunking setup will be automatically set to an instance ofChunkMessageChannelItemWriter.Methods inherited from class org.springframework.batch.core.step.builder.FaultTolerantStepBuilder
createChunkProcessor, createChunkProvider, createRetryOperations, createSkipPolicy, createTasklet, detectStreamInReader, getChunkMonitor, getFatalExceptionAwareProxy, getJsrRetryListeners, getRollbackClassifier, getSkipListeners, listener, processorNonTransactional, registerStepListenerAsSkipListener
Methods inherited from class org.springframework.batch.core.step.builder.SimpleStepBuilder
createChunkOperations, faultTolerant, getChunkCompletionPolicy, getChunkSize, getItemListeners, getProcessor, getReader, getWriter, isReaderTransactionalQueue, listener, processor, registerAsStreamsAndListeners, registerStepListenerAsItemListener
Methods inherited from class org.springframework.batch.core.step.builder.AbstractTaskletStepBuilder
concurrent, getExceptionHandler, getStepOperations, getStreams, getTaskExecutor, getThrottleLimit, getTransactionAttribute, registerStepListenerAsChunkListener, taskExecutor, throttleLimit
Methods inherited from class org.springframework.batch.core.step.builder.StepBuilderHelper
enhance, getJobRepository, getName, getTransactionManager, isAllowStartIfComplete
Constructor Detail
RemoteChunkingMasterStepBuilder
public RemoteChunkingMasterStepBuilder(java.lang.String stepName)
Create a newRemoteChunkingMasterStepBuilder.- Parameters:
stepName- name of the master step
Method Detail
inputChannel
public RemoteChunkingMasterStepBuilder<I,O> inputChannel(org.springframework.messaging.PollableChannel inputChannel)
Set the input channel on which replies from workers will be received. The provided input channel will be set as a reply channel on theChunkMessageChannelItemWritercreated by this builder.- Parameters:
inputChannel- the input channel- Returns:
- this builder instance for fluent chaining
- See Also:
ChunkMessageChannelItemWriter.setReplyChannel(org.springframework.messaging.PollableChannel)
outputChannel
public RemoteChunkingMasterStepBuilder<I,O> outputChannel(org.springframework.messaging.MessageChannel outputChannel)
Set the output channel on which requests to workers will be sent. By using this setter, a default messaging template will be created and the output channel will be set as its default channel.Use either this setter or
messagingTemplate(MessagingTemplate)to provide a fully configured messaging template.- Parameters:
outputChannel- the output channel.- Returns:
- this builder instance for fluent chaining
- See Also:
messagingTemplate(MessagingTemplate)
messagingTemplate
public RemoteChunkingMasterStepBuilder<I,O> messagingTemplate(org.springframework.integration.core.MessagingTemplate messagingTemplate)
Set theMessagingTemplateto use to send data to workers. The default channel of the messaging template must be set.Use either this setter to provide a fully configured messaging template or provide an output channel through
outputChannel(MessageChannel)and a default messaging template will be created.- Parameters:
messagingTemplate- the messaging template to use- Returns:
- this builder instance for fluent chaining
- See Also:
outputChannel(MessageChannel)
maxWaitTimeouts
public RemoteChunkingMasterStepBuilder<I,O> maxWaitTimeouts(int maxWaitTimeouts)
The maximum number of times to wait at the end of a step for a non-null result from the remote workers. This is a multiplier on the receive timeout set separately on the gateway. The ideal value is a compromise between allowing slow workers time to finish, and responsiveness if there is a dead worker. Defaults to 40.- Parameters:
maxWaitTimeouts- the maximum number of wait timeouts- See Also:
ChunkMessageChannelItemWriter.setMaxWaitTimeouts(int)
throttleLimit
public RemoteChunkingMasterStepBuilder<I,O> throttleLimit(long throttleLimit)
Public setter for the throttle limit. This limits the number of pending requests for chunk processing to avoid overwhelming the receivers.- Parameters:
throttleLimit- the throttle limit to set- See Also:
ChunkMessageChannelItemWriter.setThrottleLimit(long)
build
public TaskletStep build()
Build a masterTaskletStep.- Overrides:
buildin classFaultTolerantStepBuilder<I,O>- Returns:
- the configured master step
- See Also:
RemoteChunkHandlerFactoryBean
reader
public RemoteChunkingMasterStepBuilder<I,O> reader(ItemReader<? extends I> reader)
Description copied from class:SimpleStepBuilderAn item reader that provides a stream of items. Will be automatically registered as aAbstractTaskletStepBuilder.stream(ItemStream)or listener if it implements the corresponding interface. By default assumed to be non-transactional.- Overrides:
readerin classSimpleStepBuilder<I,O>- Parameters:
reader- an item reader- Returns:
- this for fluent chaining
- See Also:
SimpleStepBuilder.readerTransactionalQueue
repository
public RemoteChunkingMasterStepBuilder<I,O> repository(JobRepository jobRepository)
- Overrides:
repositoryin classStepBuilderHelper<AbstractTaskletStepBuilder<SimpleStepBuilder<I,O>>>
transactionManager
public RemoteChunkingMasterStepBuilder<I,O> transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
- Overrides:
transactionManagerin classStepBuilderHelper<AbstractTaskletStepBuilder<SimpleStepBuilder<I,O>>>
listener
public RemoteChunkingMasterStepBuilder<I,O> listener(java.lang.Object listener)
Description copied from class:FaultTolerantStepBuilderRegisters objects using the annotation based listener configuration.- Overrides:
listenerin classFaultTolerantStepBuilder<I,O>- Parameters:
listener- the object that has a method configured with listener annotation- Returns:
- this for fluent chaining
listener
public RemoteChunkingMasterStepBuilder<I,O> listener(SkipListener<? super I,? super O> listener)
Description copied from class:FaultTolerantStepBuilderRegister a skip listener.- Overrides:
listenerin classFaultTolerantStepBuilder<I,O>- Parameters:
listener- the listener to register- Returns:
- this for fluent chaining
listener
public RemoteChunkingMasterStepBuilder<I,O> listener(ChunkListener listener)
Description copied from class:AbstractTaskletStepBuilderRegister a chunk listener.- Overrides:
listenerin classFaultTolerantStepBuilder<I,O>- Parameters:
listener- the listener to register- Returns:
- this for fluent chaining
transactionAttribute
public RemoteChunkingMasterStepBuilder<I,O> transactionAttribute(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute)
Description copied from class:AbstractTaskletStepBuilderSets the transaction attributes for the tasklet execution. Defaults to the default values for the transaction manager, but can be manipulated to provide longer timeouts for instance.- Overrides:
transactionAttributein classFaultTolerantStepBuilder<I,O>- Parameters:
transactionAttribute- a transaction attribute set- Returns:
- this for fluent chaining
listener
public RemoteChunkingMasterStepBuilder<I,O> listener(org.springframework.retry.RetryListener listener)
Description copied from class:FaultTolerantStepBuilderRegister a retry listener.- Overrides:
listenerin classFaultTolerantStepBuilder<I,O>- Parameters:
listener- the listener to register- Returns:
- this for fluent chaining
keyGenerator
public RemoteChunkingMasterStepBuilder<I,O> keyGenerator(KeyGenerator keyGenerator)
Description copied from class:FaultTolerantStepBuilderSets the key generator for identifying retried items. Retry across transaction boundaries requires items to be identified when they are encountered again. The default strategy is to use the items themselves, relying on their own implementation to ensure that they can be identified. Often a key generator is not necessary as long as the items have reliable hash code and equals implementations, or the reader is not transactional (the default) and the item processor either is itself not transactional (not the default) or does not create new items.- Overrides:
keyGeneratorin classFaultTolerantStepBuilder<I,O>- Parameters:
keyGenerator- a key generator for the stateful retry- Returns:
- this for fluent chaining
retryLimit
public RemoteChunkingMasterStepBuilder<I,O> retryLimit(int retryLimit)
Description copied from class:FaultTolerantStepBuilderThe maximum number of times to try a failed item. Zero and one both translate to try only once and do not retry. Ignored if an explicitFaultTolerantStepBuilder.retryPolicyis set.- Overrides:
retryLimitin classFaultTolerantStepBuilder<I,O>- Parameters:
retryLimit- the retry limit (default 0)- Returns:
- this for fluent chaining
retryPolicy
public RemoteChunkingMasterStepBuilder<I,O> retryPolicy(org.springframework.retry.RetryPolicy retryPolicy)
Description copied from class:FaultTolerantStepBuilderProvide an explicit retry policy instead of using theFaultTolerantStepBuilder.retryLimit(int)and retryable exceptions provided elsewhere. Can be used to retry different exceptions a different number of times, for instance.- Overrides:
retryPolicyin classFaultTolerantStepBuilder<I,O>- Parameters:
retryPolicy- a retry policy- Returns:
- this for fluent chaining
backOffPolicy
public RemoteChunkingMasterStepBuilder<I,O> backOffPolicy(org.springframework.retry.backoff.BackOffPolicy backOffPolicy)
Description copied from class:FaultTolerantStepBuilderProvide a backoff policy to prevent items being retried immediately (e.g. in case the failure was caused by a remote resource failure that might take some time to be resolved). Ignored if an explicitFaultTolerantStepBuilder.retryPolicyis set.- Overrides:
backOffPolicyin classFaultTolerantStepBuilder<I,O>- Parameters:
backOffPolicy- the back off policy to use (default no backoff)- Returns:
- this for fluent chaining
retryContextCache
public RemoteChunkingMasterStepBuilder<I,O> retryContextCache(org.springframework.retry.policy.RetryContextCache retryContextCache)
Description copied from class:FaultTolerantStepBuilderProvide an explicit retry context cache. Retry is stateful across transactions in the case of failures in item processing or writing, so some information about the context for subsequent retries has to be stored.- Overrides:
retryContextCachein classFaultTolerantStepBuilder<I,O>- Parameters:
retryContextCache- cache for retry contexts in between transactions (default to standard in-memory implementation)- Returns:
- this for fluent chaining
skipLimit
public RemoteChunkingMasterStepBuilder<I,O> skipLimit(int skipLimit)
Description copied from class:FaultTolerantStepBuilderSets the maximum number of failed items to skip before the step fails. Ignored if an explicitFaultTolerantStepBuilder.skipPolicy(SkipPolicy)is provided.- Overrides:
skipLimitin classFaultTolerantStepBuilder<I,O>- Parameters:
skipLimit- the skip limit to set- Returns:
- this for fluent chaining
noSkip
public RemoteChunkingMasterStepBuilder<I,O> noSkip(java.lang.Class<? extends java.lang.Throwable> type)
Description copied from class:FaultTolerantStepBuilderExplicitly prevent certain exceptions (and subclasses) from being skipped.- Overrides:
noSkipin classFaultTolerantStepBuilder<I,O>- Parameters:
type- the non-skippable exception- Returns:
- this for fluent chaining
skip
public RemoteChunkingMasterStepBuilder<I,O> skip(java.lang.Class<? extends java.lang.Throwable> type)
Description copied from class:FaultTolerantStepBuilderExplicitly request certain exceptions (and subclasses) to be skipped. These exceptions (and their subclasses) might be thrown during any phase of the chunk processing (read, process, write) but separate counts are made of skips on read, process and write inside the step execution.- Overrides:
skipin classFaultTolerantStepBuilder<I,O>- Parameters:
type- the exception type.- Returns:
- this for fluent chaining
skipPolicy
public RemoteChunkingMasterStepBuilder<I,O> skipPolicy(SkipPolicy skipPolicy)
Description copied from class:FaultTolerantStepBuilderProvide an explicit policy for managing skips. A skip policy determines which exceptions are skippable and how many times.- Overrides:
skipPolicyin classFaultTolerantStepBuilder<I,O>- Parameters:
skipPolicy- the skip policy- Returns:
- this for fluent chaining
noRollback
public RemoteChunkingMasterStepBuilder<I,O> noRollback(java.lang.Class<? extends java.lang.Throwable> type)
Description copied from class:FaultTolerantStepBuilderMark this exception as ignorable during item read or processing operations. Processing continues with no additional callbacks (use skips instead if you need to be notified). Ignored during write because there is no guarantee of skip and retry without rollback.- Overrides:
noRollbackin classFaultTolerantStepBuilder<I,O>- Parameters:
type- the exception to mark as no rollback- Returns:
- this for fluent chaining
noRetry
public RemoteChunkingMasterStepBuilder<I,O> noRetry(java.lang.Class<? extends java.lang.Throwable> type)
Description copied from class:FaultTolerantStepBuilderExplicitly ask for an exception (and subclasses) to be excluded from retry.- Overrides:
noRetryin classFaultTolerantStepBuilder<I,O>- Parameters:
type- the exception to exclude from retry- Returns:
- this for fluent chaining
retry
public RemoteChunkingMasterStepBuilder<I,O> retry(java.lang.Class<? extends java.lang.Throwable> type)
Description copied from class:FaultTolerantStepBuilderExplicitly ask for an exception (and subclasses) to be retried.- Overrides:
retryin classFaultTolerantStepBuilder<I,O>- Parameters:
type- the exception to retry- Returns:
- this for fluent chaining
stream
public RemoteChunkingMasterStepBuilder<I,O> stream(ItemStream stream)
Description copied from class:AbstractTaskletStepBuilderRegister a stream for callbacks that manage restart data.- Overrides:
streamin classFaultTolerantStepBuilder<I,O>- Parameters:
stream- the stream to register- Returns:
- this for fluent chaining
chunk
public RemoteChunkingMasterStepBuilder<I,O> chunk(int chunkSize)
Description copied from class:SimpleStepBuilderSets the chunk size or commit interval for this step. This is the maximum number of items that will be read before processing starts in a single transaction. Not compatible withSimpleStepBuilder.completionPolicy.- Overrides:
chunkin classSimpleStepBuilder<I,O>- Parameters:
chunkSize- the chunk size (a.k.a commit interval)- Returns:
- this for fluent chaining
chunk
public RemoteChunkingMasterStepBuilder<I,O> chunk(CompletionPolicy completionPolicy)
Description copied from class:SimpleStepBuilderSets a completion policy for the chunk processing. Items are read until this policy determines that a chunk is complete, giving more control than with just thechunk size(or commit interval).- Overrides:
chunkin classSimpleStepBuilder<I,O>- Parameters:
completionPolicy- a completion policy for the chunk- Returns:
- this for fluent chaining
writer
public RemoteChunkingMasterStepBuilder<I,O> writer(ItemWriter<? super O> writer) throws java.lang.UnsupportedOperationException
This method will throw aUnsupportedOperationExceptionsince the item writer of the master step in a remote chunking setup will be automatically set to an instance ofChunkMessageChannelItemWriter. When building a master step for remote chunking, no item writer must be provided.- Overrides:
writerin classSimpleStepBuilder<I,O>- Parameters:
writer- an item writer- Returns:
- this for fluent chaining
- Throws:
java.lang.UnsupportedOperationException- if an item writer is provided- See Also:
ChunkMessageChannelItemWriter,RemoteChunkHandlerFactoryBean.setChunkWriter(ItemWriter)
readerIsTransactionalQueue
public RemoteChunkingMasterStepBuilder<I,O> readerIsTransactionalQueue()
Description copied from class:SimpleStepBuilderSets a flag to say that the reader is transactional (usually a queue), which is to say that failed items might be rolled back and re-presented in a subsequent transaction. Default is false, meaning that the items are read outside a transaction and possibly cached.- Overrides:
readerIsTransactionalQueuein classSimpleStepBuilder<I,O>- Returns:
- this for fluent chaining
listener
public RemoteChunkingMasterStepBuilder<I,O> listener(ItemReadListener<? super I> listener)
Description copied from class:SimpleStepBuilderRegister an item reader listener.- Overrides:
listenerin classSimpleStepBuilder<I,O>- Parameters:
listener- the listener to register- Returns:
- this for fluent chaining
listener
public RemoteChunkingMasterStepBuilder<I,O> listener(ItemWriteListener<? super O> listener)
Description copied from class:SimpleStepBuilderRegister an item writer listener.- Overrides:
listenerin classSimpleStepBuilder<I,O>- Parameters:
listener- the listener to register- Returns:
- this for fluent chaining
chunkOperations
public RemoteChunkingMasterStepBuilder<I,O> chunkOperations(RepeatOperations repeatTemplate)
Description copied from class:SimpleStepBuilderInstead of achunk sizeorcompletion policyyou can provide a complete repeat operations instance that handles the iteration over the item reader.- Overrides:
chunkOperationsin classSimpleStepBuilder<I,O>- Parameters:
repeatTemplate- a complete repeat template for the chunk- Returns:
- this for fluent chaining
exceptionHandler
public RemoteChunkingMasterStepBuilder<I,O> exceptionHandler(ExceptionHandler exceptionHandler)
Description copied from class:AbstractTaskletStepBuilderSets the exception handler to use in the case of tasklet failures. Default is to rethrow everything.- Overrides:
exceptionHandlerin classAbstractTaskletStepBuilder<SimpleStepBuilder<I,O>>- Parameters:
exceptionHandler- the exception handler- Returns:
- this for fluent chaining
stepOperations
public RemoteChunkingMasterStepBuilder<I,O> stepOperations(RepeatOperations repeatTemplate)
Description copied from class:AbstractTaskletStepBuilderSets the repeat template used for iterating the tasklet execution. By default it will terminate only when the tasklet returns FINISHED (or null).- Overrides:
stepOperationsin classAbstractTaskletStepBuilder<SimpleStepBuilder<I,O>>- Parameters:
repeatTemplate- a repeat template with rules for iterating- Returns:
- this for fluent chaining
startLimit
public RemoteChunkingMasterStepBuilder<I,O> startLimit(int startLimit)
- Overrides:
startLimitin classStepBuilderHelper<AbstractTaskletStepBuilder<SimpleStepBuilder<I,O>>>
listener
public RemoteChunkingMasterStepBuilder<I,O> listener(StepExecutionListener listener)
- Overrides:
listenerin classStepBuilderHelper<AbstractTaskletStepBuilder<SimpleStepBuilder<I,O>>>
allowStartIfComplete
public RemoteChunkingMasterStepBuilder<I,O> allowStartIfComplete(boolean allowStartIfComplete)
- Overrides:
allowStartIfCompletein classStepBuilderHelper<AbstractTaskletStepBuilder<SimpleStepBuilder<I,O>>>
processor
public RemoteChunkingMasterStepBuilder<I,O> processor(ItemProcessor<? super I,? extends O> itemProcessor)
Description copied from class:SimpleStepBuilderAn item processor that processes or transforms a stream of items. Will be automatically registered as aAbstractTaskletStepBuilder.stream(ItemStream)or listener if it implements the corresponding interface.- Overrides:
processorin classSimpleStepBuilder<I,O>- Parameters:
itemProcessor- an item processor- Returns:
- this for fluent chaining