Package xyz.block.ftl
Annotation Subscription
-
- All Implemented Interfaces:
-
java.lang.annotation.Annotation
@Retention(value = RetentionPolicy.RUNTIME)@Target(value = {ElementType.METHOD, ElementType.ANNOTATION_TYPE}) public @interface Subscription
-
-
Method Summary
Modifier and Type Method Description abstract Class<out ConsumableTopic>topic()The class of the topic to subscribe to, which can be used in place of directly specifying the topic name and module. abstract FromOffsetfrom()abstract booleandeadLetter()-
-
Method Detail
-
topic
abstract Class<out ConsumableTopic> topic()
The class of the topic to subscribe to, which can be used in place of directly specifying the topic name and module.
-
from
abstract FromOffset from()
- Returns:
The initial offset to start consuming from.
-
deadLetter
abstract boolean deadLetter()
- Returns:
Whether to create a dead letter queue for events that do not succeed within the retry policy.
-
-
-
-