Interface Processor.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Processor.Builder,
,Processor> SdkBuilder<Processor.Builder,
,Processor> SdkPojo
- Enclosing class:
Processor
-
Method Summary
Modifier and TypeMethodDescriptiondefault Processor.Builder
configuration
(Consumer<ProcessorConfiguration.Builder> configuration) The information about the type of processor and its identifier.configuration
(ProcessorConfiguration configuration) The information about the type of processor and its identifier.executionOrder
(Integer executionOrder) The sequence in which processors run.fallbackAction
(String fallbackAction) Determines whether to continue with message processing or stop it in cases where communication with a processor fails.fallbackAction
(FallbackAction fallbackAction) Determines whether to continue with message processing or stop it in cases where communication with a processor fails.The name of the channel flow.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the channel flow.
- Parameters:
name
- The name of the channel flow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
The information about the type of processor and its identifier.
- Parameters:
configuration
- The information about the type of processor and its identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
The information about the type of processor and its identifier.
This is a convenience method that creates an instance of theProcessorConfiguration.Builder
avoiding the need to create one manually viaProcessorConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfiguration(ProcessorConfiguration)
.- Parameters:
configuration
- a consumer that will call methods onProcessorConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
executionOrder
The sequence in which processors run. If you have multiple processors in a channel flow, message processing goes through each processor in the sequence. The value determines the sequence. At this point, we support only 1 processor within a flow.
- Parameters:
executionOrder
- The sequence in which processors run. If you have multiple processors in a channel flow, message processing goes through each processor in the sequence. The value determines the sequence. At this point, we support only 1 processor within a flow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fallbackAction
Determines whether to continue with message processing or stop it in cases where communication with a processor fails. If a processor has a fallback action of
ABORT
and communication with it fails, the processor sets the message status toFAILED
and does not send the message to any recipients. Note that if the last processor in the channel flow sequence has a fallback action ofCONTINUE
and communication with the processor fails, then the message is considered processed and sent to recipients of the channel.- Parameters:
fallbackAction
- Determines whether to continue with message processing or stop it in cases where communication with a processor fails. If a processor has a fallback action ofABORT
and communication with it fails, the processor sets the message status toFAILED
and does not send the message to any recipients. Note that if the last processor in the channel flow sequence has a fallback action ofCONTINUE
and communication with the processor fails, then the message is considered processed and sent to recipients of the channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fallbackAction
Determines whether to continue with message processing or stop it in cases where communication with a processor fails. If a processor has a fallback action of
ABORT
and communication with it fails, the processor sets the message status toFAILED
and does not send the message to any recipients. Note that if the last processor in the channel flow sequence has a fallback action ofCONTINUE
and communication with the processor fails, then the message is considered processed and sent to recipients of the channel.- Parameters:
fallbackAction
- Determines whether to continue with message processing or stop it in cases where communication with a processor fails. If a processor has a fallback action ofABORT
and communication with it fails, the processor sets the message status toFAILED
and does not send the message to any recipients. Note that if the last processor in the channel flow sequence has a fallback action ofCONTINUE
and communication with the processor fails, then the message is considered processed and sent to recipients of the channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-