Interface Processor.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Processor.Builder,Processor>,SdkBuilder<Processor.Builder,Processor>,SdkPojo
- Enclosing class:
- Processor
public static interface Processor.Builder extends SdkPojo, CopyableBuilder<Processor.Builder,Processor>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Processor.Builderconfiguration(Consumer<ProcessorConfiguration.Builder> configuration)The information about the type of processor and its identifier.Processor.Builderconfiguration(ProcessorConfiguration configuration)The information about the type of processor and its identifier.Processor.BuilderexecutionOrder(Integer executionOrder)The sequence in which processors run.Processor.BuilderfallbackAction(String fallbackAction)Determines whether to continue with message processing or stop it in cases where communication with a processor fails.Processor.BuilderfallbackAction(FallbackAction fallbackAction)Determines whether to continue with message processing or stop it in cases where communication with a processor fails.Processor.Buildername(String name)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, sdkFields
-
-
-
-
Method Detail
-
name
Processor.Builder name(String 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
Processor.Builder configuration(ProcessorConfiguration 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
default Processor.Builder configuration(Consumer<ProcessorConfiguration.Builder> configuration)
The information about the type of processor and its identifier.
This is a convenience method that creates an instance of theProcessorConfiguration.Builderavoiding the need to create one manually viaProcessorConfiguration.builder().When the
Consumercompletes,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:
configuration(ProcessorConfiguration)
-
executionOrder
Processor.Builder executionOrder(Integer 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
Processor.Builder fallbackAction(String 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
ABORTand communication with it fails, the processor sets the message status toFAILEDand does not send the message to any recipients. Note that if the last processor in the channel flow sequence has a fallback action ofCONTINUEand 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 ofABORTand communication with it fails, the processor sets the message status toFAILEDand does not send the message to any recipients. Note that if the last processor in the channel flow sequence has a fallback action ofCONTINUEand 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,FallbackAction
-
fallbackAction
Processor.Builder fallbackAction(FallbackAction 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
ABORTand communication with it fails, the processor sets the message status toFAILEDand does not send the message to any recipients. Note that if the last processor in the channel flow sequence has a fallback action ofCONTINUEand 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 ofABORTand communication with it fails, the processor sets the message status toFAILEDand does not send the message to any recipients. Note that if the last processor in the channel flow sequence has a fallback action ofCONTINUEand 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,FallbackAction
-
-