I - type of input itemsO - type of output itemsRemoteChunkingManagerStepBuilder instead.@Deprecated public class RemoteChunkingMasterStepBuilder<I,O> extends FaultTolerantStepBuilder<I,O>
ChunkMessageChannelItemWriter on the master step.
If no messagingTemplate is provided through
messagingTemplate(MessagingTemplate),
this builder will create one and set its default channel to the outputChannel
provided through outputChannel(MessageChannel).
If a messagingTemplate is 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.
StepBuilderHelper.CommonStepPropertieschunkListenerslogger, properties| Constructor and Description |
|---|
RemoteChunkingMasterStepBuilder(java.lang.String stepName)
Deprecated.
Create a new
RemoteChunkingMasterStepBuilder. |
| Modifier and Type | Method and Description |
|---|---|
RemoteChunkingMasterStepBuilder<I,O> |
allowStartIfComplete(boolean allowStartIfComplete)
Deprecated.
|
RemoteChunkingMasterStepBuilder<I,O> |
backOffPolicy(org.springframework.retry.backoff.BackOffPolicy backOffPolicy)
Deprecated.
Provide a backoff policy to prevent items being retried immediately (e.g.
|
TaskletStep |
build()
Deprecated.
Build a master
TaskletStep. |
RemoteChunkingMasterStepBuilder<I,O> |
chunk(CompletionPolicy completionPolicy)
Deprecated.
Sets a completion policy for the chunk processing.
|
RemoteChunkingMasterStepBuilder<I,O> |
chunk(int chunkSize)
Deprecated.
Sets the chunk size or commit interval for this step.
|
RemoteChunkingMasterStepBuilder<I,O> |
chunkOperations(RepeatOperations repeatTemplate)
Deprecated.
Instead of a
chunk size or completion policy you can provide
a complete repeat operations instance that handles the iteration over the item reader. |
RemoteChunkingMasterStepBuilder<I,O> |
exceptionHandler(ExceptionHandler exceptionHandler)
Deprecated.
Sets the exception handler to use in the case of tasklet failures.
|
RemoteChunkingMasterStepBuilder<I,O> |
inputChannel(org.springframework.messaging.PollableChannel inputChannel)
Deprecated.
Set the input channel on which replies from workers will be received.
|
RemoteChunkingMasterStepBuilder<I,O> |
keyGenerator(KeyGenerator keyGenerator)
Deprecated.
Sets the key generator for identifying retried items.
|
RemoteChunkingMasterStepBuilder<I,O> |
listener(ChunkListener listener)
Deprecated.
Register a chunk listener.
|
RemoteChunkingMasterStepBuilder<I,O> |
listener(ItemReadListener<? super I> listener)
Deprecated.
Register an item reader listener.
|
RemoteChunkingMasterStepBuilder<I,O> |
listener(ItemWriteListener<? super O> listener)
Deprecated.
Register an item writer listener.
|
RemoteChunkingMasterStepBuilder<I,O> |
listener(java.lang.Object listener)
Deprecated.
Registers objects using the annotation based listener configuration.
|
RemoteChunkingMasterStepBuilder<I,O> |
listener(org.springframework.retry.RetryListener listener)
Deprecated.
Register a retry listener.
|
RemoteChunkingMasterStepBuilder<I,O> |
listener(SkipListener<? super I,? super O> listener)
Deprecated.
Register a skip listener.
|
RemoteChunkingMasterStepBuilder<I,O> |
listener(StepExecutionListener listener)
Deprecated.
|
RemoteChunkingMasterStepBuilder<I,O> |
maxWaitTimeouts(int maxWaitTimeouts)
Deprecated.
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)
Deprecated.
Set the
MessagingTemplate to use to send data to workers. |
RemoteChunkingMasterStepBuilder<I,O> |
noRetry(java.lang.Class<? extends java.lang.Throwable> type)
Deprecated.
Explicitly ask for an exception (and subclasses) to be excluded from retry.
|
RemoteChunkingMasterStepBuilder<I,O> |
noRollback(java.lang.Class<? extends java.lang.Throwable> type)
Deprecated.
Mark this exception as ignorable during item read or processing operations.
|
RemoteChunkingMasterStepBuilder<I,O> |
noSkip(java.lang.Class<? extends java.lang.Throwable> type)
Deprecated.
Explicitly prevent certain exceptions (and subclasses) from being skipped.
|
RemoteChunkingMasterStepBuilder<I,O> |
outputChannel(org.springframework.messaging.MessageChannel outputChannel)
Deprecated.
Set the output channel on which requests to workers will be sent.
|
RemoteChunkingMasterStepBuilder<I,O> |
processor(ItemProcessor<? super I,? extends O> itemProcessor)
Deprecated.
An item processor that processes or transforms a stream of items.
|
RemoteChunkingMasterStepBuilder<I,O> |
reader(ItemReader<? extends I> reader)
Deprecated.
An item reader that provides a stream of items.
|
RemoteChunkingMasterStepBuilder<I,O> |
readerIsTransactionalQueue()
Deprecated.
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)
Deprecated.
|
RemoteChunkingMasterStepBuilder<I,O> |
retry(java.lang.Class<? extends java.lang.Throwable> type)
Deprecated.
Explicitly ask for an exception (and subclasses) to be retried.
|
RemoteChunkingMasterStepBuilder<I,O> |
retryContextCache(org.springframework.retry.policy.RetryContextCache retryContextCache)
Deprecated.
Provide an explicit retry context cache.
|
RemoteChunkingMasterStepBuilder<I,O> |
retryLimit(int retryLimit)
Deprecated.
The maximum number of times to try a failed item.
|
RemoteChunkingMasterStepBuilder<I,O> |
retryPolicy(org.springframework.retry.RetryPolicy retryPolicy)
Deprecated.
Provide an explicit retry policy instead of using the
FaultTolerantStepBuilder.retryLimit(int) and retryable exceptions provided
elsewhere. |
RemoteChunkingMasterStepBuilder<I,O> |
skip(java.lang.Class<? extends java.lang.Throwable> type)
Deprecated.
Explicitly request certain exceptions (and subclasses) to be skipped.
|
RemoteChunkingMasterStepBuilder<I,O> |
skipLimit(int skipLimit)
Deprecated.
Sets the maximum number of failed items to skip before the step fails.
|
RemoteChunkingMasterStepBuilder<I,O> |
skipPolicy(SkipPolicy skipPolicy)
Deprecated.
Provide an explicit policy for managing skips.
|
RemoteChunkingMasterStepBuilder<I,O> |
startLimit(int startLimit)
Deprecated.
|
RemoteChunkingMasterStepBuilder<I,O> |
stepOperations(RepeatOperations repeatTemplate)
Deprecated.
Sets the repeat template used for iterating the tasklet execution.
|
RemoteChunkingMasterStepBuilder<I,O> |
stream(ItemStream stream)
Deprecated.
Register a stream for callbacks that manage restart data.
|
RemoteChunkingMasterStepBuilder<I,O> |
throttleLimit(long throttleLimit)
Deprecated.
Public setter for the throttle limit.
|
RemoteChunkingMasterStepBuilder<I,O> |
transactionAttribute(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute)
Deprecated.
Sets the transaction attributes for the tasklet execution.
|
RemoteChunkingMasterStepBuilder<I,O> |
transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
Deprecated.
|
RemoteChunkingMasterStepBuilder<I,O> |
writer(ItemWriter<? super O> writer)
Deprecated.
This method will throw a
UnsupportedOperationException since
the item writer of the master step in a remote chunking setup will be
automatically set to an instance of ChunkMessageChannelItemWriter. |
createChunkProcessor, createChunkProvider, createRetryOperations, createSkipPolicy, createTasklet, detectStreamInReader, getChunkMonitor, getFatalExceptionAwareProxy, getJsrRetryListeners, getRollbackClassifier, getSkipListeners, listener, processorNonTransactional, registerStepListenerAsSkipListenercreateChunkOperations, faultTolerant, getChunkCompletionPolicy, getChunkSize, getItemListeners, getProcessor, getReader, getWriter, isReaderTransactionalQueue, listener, processor, registerAsStreamsAndListeners, registerStepListenerAsItemListenerconcurrent, getExceptionHandler, getStepOperations, getStreams, getTaskExecutor, getThrottleLimit, getTransactionAttribute, registerStepListenerAsChunkListener, taskExecutor, throttleLimitenhance, getJobRepository, getName, getTransactionManager, isAllowStartIfCompletepublic RemoteChunkingMasterStepBuilder(java.lang.String stepName)
RemoteChunkingMasterStepBuilder.stepName - name of the master steppublic RemoteChunkingMasterStepBuilder<I,O> inputChannel(org.springframework.messaging.PollableChannel inputChannel)
ChunkMessageChannelItemWriter created by this builder.inputChannel - the input channelChunkMessageChannelItemWriter.setReplyChannel(org.springframework.messaging.PollableChannel)public RemoteChunkingMasterStepBuilder<I,O> outputChannel(org.springframework.messaging.MessageChannel outputChannel)
Use either this setter or messagingTemplate(MessagingTemplate)
to provide a fully configured messaging template.
outputChannel - the output channel.messagingTemplate(MessagingTemplate)public RemoteChunkingMasterStepBuilder<I,O> messagingTemplate(org.springframework.integration.core.MessagingTemplate messagingTemplate)
MessagingTemplate to 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.
messagingTemplate - the messaging template to useoutputChannel(MessageChannel)public RemoteChunkingMasterStepBuilder<I,O> maxWaitTimeouts(int maxWaitTimeouts)
maxWaitTimeouts - the maximum number of wait timeoutsChunkMessageChannelItemWriter.setMaxWaitTimeouts(int)public RemoteChunkingMasterStepBuilder<I,O> throttleLimit(long throttleLimit)
throttleLimit - the throttle limit to setChunkMessageChannelItemWriter.setThrottleLimit(long)public TaskletStep build()
TaskletStep.build in class FaultTolerantStepBuilder<I,O>RemoteChunkHandlerFactoryBeanpublic RemoteChunkingMasterStepBuilder<I,O> reader(ItemReader<? extends I> reader)
SimpleStepBuilderAbstractTaskletStepBuilder.stream(ItemStream)
or listener if it implements the corresponding interface. By default assumed to be non-transactional.reader in class SimpleStepBuilder<I,O>reader - an item readerSimpleStepBuilder.readerTransactionalQueuepublic RemoteChunkingMasterStepBuilder<I,O> repository(JobRepository jobRepository)
repository in class StepBuilderHelper<AbstractTaskletStepBuilder<SimpleStepBuilder<I,O>>>public RemoteChunkingMasterStepBuilder<I,O> transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
transactionManager in class StepBuilderHelper<AbstractTaskletStepBuilder<SimpleStepBuilder<I,O>>>public RemoteChunkingMasterStepBuilder<I,O> listener(java.lang.Object listener)
FaultTolerantStepBuilderlistener in class FaultTolerantStepBuilder<I,O>listener - the object that has a method configured with listener annotationpublic RemoteChunkingMasterStepBuilder<I,O> listener(SkipListener<? super I,? super O> listener)
FaultTolerantStepBuilderlistener in class FaultTolerantStepBuilder<I,O>listener - the listener to registerpublic RemoteChunkingMasterStepBuilder<I,O> listener(ChunkListener listener)
AbstractTaskletStepBuilderlistener in class FaultTolerantStepBuilder<I,O>listener - the listener to registerpublic RemoteChunkingMasterStepBuilder<I,O> transactionAttribute(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute)
AbstractTaskletStepBuildertransactionAttribute in class FaultTolerantStepBuilder<I,O>transactionAttribute - a transaction attribute setpublic RemoteChunkingMasterStepBuilder<I,O> listener(org.springframework.retry.RetryListener listener)
FaultTolerantStepBuilderlistener in class FaultTolerantStepBuilder<I,O>listener - the listener to registerpublic RemoteChunkingMasterStepBuilder<I,O> keyGenerator(KeyGenerator keyGenerator)
FaultTolerantStepBuilderkeyGenerator in class FaultTolerantStepBuilder<I,O>keyGenerator - a key generator for the stateful retrypublic RemoteChunkingMasterStepBuilder<I,O> retryLimit(int retryLimit)
FaultTolerantStepBuilderFaultTolerantStepBuilder.retryPolicy is set.retryLimit in class FaultTolerantStepBuilder<I,O>retryLimit - the retry limit (default 0)public RemoteChunkingMasterStepBuilder<I,O> retryPolicy(org.springframework.retry.RetryPolicy retryPolicy)
FaultTolerantStepBuilderFaultTolerantStepBuilder.retryLimit(int) and retryable exceptions provided
elsewhere. Can be used to retry different exceptions a different number of times, for instance.retryPolicy in class FaultTolerantStepBuilder<I,O>retryPolicy - a retry policypublic RemoteChunkingMasterStepBuilder<I,O> backOffPolicy(org.springframework.retry.backoff.BackOffPolicy backOffPolicy)
FaultTolerantStepBuilderFaultTolerantStepBuilder.retryPolicy is
set.backOffPolicy in class FaultTolerantStepBuilder<I,O>backOffPolicy - the back off policy to use (default no backoff)public RemoteChunkingMasterStepBuilder<I,O> retryContextCache(org.springframework.retry.policy.RetryContextCache retryContextCache)
FaultTolerantStepBuilderretryContextCache in class FaultTolerantStepBuilder<I,O>retryContextCache - cache for retry contexts in between transactions (default to standard in-memory
implementation)public RemoteChunkingMasterStepBuilder<I,O> skipLimit(int skipLimit)
FaultTolerantStepBuilderFaultTolerantStepBuilder.skipPolicy(SkipPolicy) is provided.skipLimit in class FaultTolerantStepBuilder<I,O>skipLimit - the skip limit to setpublic RemoteChunkingMasterStepBuilder<I,O> noSkip(java.lang.Class<? extends java.lang.Throwable> type)
FaultTolerantStepBuildernoSkip in class FaultTolerantStepBuilder<I,O>type - the non-skippable exceptionpublic RemoteChunkingMasterStepBuilder<I,O> skip(java.lang.Class<? extends java.lang.Throwable> type)
FaultTolerantStepBuilderskip in class FaultTolerantStepBuilder<I,O>type - the exception type.public RemoteChunkingMasterStepBuilder<I,O> skipPolicy(SkipPolicy skipPolicy)
FaultTolerantStepBuilderskipPolicy in class FaultTolerantStepBuilder<I,O>skipPolicy - the skip policypublic RemoteChunkingMasterStepBuilder<I,O> noRollback(java.lang.Class<? extends java.lang.Throwable> type)
FaultTolerantStepBuildernoRollback in class FaultTolerantStepBuilder<I,O>type - the exception to mark as no rollbackpublic RemoteChunkingMasterStepBuilder<I,O> noRetry(java.lang.Class<? extends java.lang.Throwable> type)
FaultTolerantStepBuildernoRetry in class FaultTolerantStepBuilder<I,O>type - the exception to exclude from retrypublic RemoteChunkingMasterStepBuilder<I,O> retry(java.lang.Class<? extends java.lang.Throwable> type)
FaultTolerantStepBuilderretry in class FaultTolerantStepBuilder<I,O>type - the exception to retrypublic RemoteChunkingMasterStepBuilder<I,O> stream(ItemStream stream)
AbstractTaskletStepBuilderstream in class FaultTolerantStepBuilder<I,O>stream - the stream to registerpublic RemoteChunkingMasterStepBuilder<I,O> chunk(int chunkSize)
SimpleStepBuilderSimpleStepBuilder.completionPolicy
.chunk in class SimpleStepBuilder<I,O>chunkSize - the chunk size (a.k.a commit interval)public RemoteChunkingMasterStepBuilder<I,O> chunk(CompletionPolicy completionPolicy)
SimpleStepBuilderchunk size (or commit interval).chunk in class SimpleStepBuilder<I,O>completionPolicy - a completion policy for the chunkpublic RemoteChunkingMasterStepBuilder<I,O> writer(ItemWriter<? super O> writer) throws java.lang.UnsupportedOperationException
UnsupportedOperationException since
the item writer of the master step in a remote chunking setup will be
automatically set to an instance of ChunkMessageChannelItemWriter.
When building a master step for remote chunking, no item writer must be
provided.writer in class SimpleStepBuilder<I,O>writer - an item writerjava.lang.UnsupportedOperationException - if an item writer is providedChunkMessageChannelItemWriter,
RemoteChunkHandlerFactoryBean.setChunkWriter(ItemWriter)public RemoteChunkingMasterStepBuilder<I,O> readerIsTransactionalQueue()
SimpleStepBuilderreaderIsTransactionalQueue in class SimpleStepBuilder<I,O>public RemoteChunkingMasterStepBuilder<I,O> listener(ItemReadListener<? super I> listener)
SimpleStepBuilderlistener in class SimpleStepBuilder<I,O>listener - the listener to registerpublic RemoteChunkingMasterStepBuilder<I,O> listener(ItemWriteListener<? super O> listener)
SimpleStepBuilderlistener in class SimpleStepBuilder<I,O>listener - the listener to registerpublic RemoteChunkingMasterStepBuilder<I,O> chunkOperations(RepeatOperations repeatTemplate)
SimpleStepBuilderchunk size or completion policy you can provide
a complete repeat operations instance that handles the iteration over the item reader.chunkOperations in class SimpleStepBuilder<I,O>repeatTemplate - a complete repeat template for the chunkpublic RemoteChunkingMasterStepBuilder<I,O> exceptionHandler(ExceptionHandler exceptionHandler)
AbstractTaskletStepBuilderexceptionHandler in class AbstractTaskletStepBuilder<SimpleStepBuilder<I,O>>exceptionHandler - the exception handlerpublic RemoteChunkingMasterStepBuilder<I,O> stepOperations(RepeatOperations repeatTemplate)
AbstractTaskletStepBuilderstepOperations in class AbstractTaskletStepBuilder<SimpleStepBuilder<I,O>>repeatTemplate - a repeat template with rules for iteratingpublic RemoteChunkingMasterStepBuilder<I,O> startLimit(int startLimit)
startLimit in class StepBuilderHelper<AbstractTaskletStepBuilder<SimpleStepBuilder<I,O>>>public RemoteChunkingMasterStepBuilder<I,O> listener(StepExecutionListener listener)
listener in class StepBuilderHelper<AbstractTaskletStepBuilder<SimpleStepBuilder<I,O>>>public RemoteChunkingMasterStepBuilder<I,O> allowStartIfComplete(boolean allowStartIfComplete)
allowStartIfComplete in class StepBuilderHelper<AbstractTaskletStepBuilder<SimpleStepBuilder<I,O>>>public RemoteChunkingMasterStepBuilder<I,O> processor(ItemProcessor<? super I,? extends O> itemProcessor)
SimpleStepBuilderAbstractTaskletStepBuilder.stream(ItemStream) or listener if it implements the corresponding interface.processor in class SimpleStepBuilder<I,O>itemProcessor - an item processor