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
-
-
Method Detail
-
module
abstract String module()
- Returns:
The module of the topic to subscribe to, if empty then the topic is assumed to be in the current module.
-
topic
abstract String topic()
- Returns:
The name of the topic to subscribe to. Cannot be used in conjunction with topicClass.
-
topicClass
abstract Class<out Topic> topicClass()
The class of the topic to subscribe to, which can be used in place of directly specifying the topic name and module.
-
-
-
-