Package io.atleon.aws.sqs
Interface NacknowledgerFactory<T>
-
- Type Parameters:
T- The deserialized type of received Message bodies
- All Superinterfaces:
io.atleon.util.Configurable
- All Known Implementing Classes:
NacknowledgerFactory.Emit,NacknowledgerFactory.VisibilityReset
public interface NacknowledgerFactory<T> extends io.atleon.util.ConfigurableAn interface for creating a "nacknowledger" (Consumerof Throwable) that is executed if/when processing of the associatedSqsMessageis exceptionally terminated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classNacknowledgerFactory.Emit<T>static classNacknowledgerFactory.VisibilityReset<T>
-
Field Summary
Fields Modifier and Type Field Description static StringVISIBILITY_RESET_SECONDS_CONFIGWhen usingNacknowledgerFactory.VisibilityResetthis configures the number of seconds that a nacknowledged message has its visibility reset by.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidconfigure(Map<String,?> properties)Consumer<Throwable>create(ReceivedSqsMessage<T> message, SqsMessageVisibilityChanger visibilityChanger, Consumer<Throwable> errorEmitter)
-
-
-
Field Detail
-
VISIBILITY_RESET_SECONDS_CONFIG
static final String VISIBILITY_RESET_SECONDS_CONFIG
When usingNacknowledgerFactory.VisibilityResetthis configures the number of seconds that a nacknowledged message has its visibility reset by.- See Also:
- Constant Field Values
-
-
Method Detail
-
configure
default void configure(Map<String,?> properties)
- Specified by:
configurein interfaceio.atleon.util.Configurable
-
create
Consumer<Throwable> create(ReceivedSqsMessage<T> message, SqsMessageVisibilityChanger visibilityChanger, Consumer<Throwable> errorEmitter)
-
-