Annotation Interface HandleCustom
@Documented
@Retention(RUNTIME)
@Target({METHOD,CONSTRUCTOR})
@HandleMessage(CUSTOM)
public @interface HandleCustom
Marks a method or constructor as a handler for messages from a custom message topic.
- See Also:
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<?>[]Restricts which payload types this handler may be invoked for.booleanIftrue, disables this handler during discovery.Determines how the handler responds when referenced protected data is no longer available.booleanIftrue, this handler is considered passive and will not emit a result message.
-
Element Details
-
onMissingProtectedData
MissingProtectedDataPolicy onMissingProtectedDataDetermines how the handler responds when referenced protected data is no longer available.- Default:
DEFAULT
-
value
String valueSpecifies the topic name. -
disabled
boolean disabledIftrue, disables this handler during discovery.- Default:
false
-
passive
boolean passiveIftrue, this handler is considered passive and will not emit a result message. Useful when the handler is for side effects only.- Default:
false
-
allowedClasses
Class<?>[] allowedClassesRestricts which payload types this handler may be invoked for.- Default:
{}
-