Annotation Interface EventSubscription
Declares an activation-owned durable event handler registered by a trusted host adapter.
Delivery is at least once: the source cursor is acknowledged only after actual handler completion.
The handler accepts one managed event delivery and returns void or CompletionStage<Void>.
A snapshot is explicitly distinguished from a subsequent event. Endpoint refresh preserves the
stable subscription identity; history expiry follows the installed host profile, never a silent reset.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSelects an exact source operation; empty includes all operations.Selects an installed host source/metadata/expiry policy.intDeclares the durable handler contract version; incompatible definitions require a new identity.
-
Element Details
-
value
String valueReturns the stable subscription identity within the host's source namespace.- Returns:
- nonempty ASCII identity, at most128 characters
-
policy
String policySelects an installed host source/metadata/expiry policy.- Returns:
- fixed profile name
- Default:
"default"
-
filter
String filterSelects an exact source operation; empty includes all operations.- Returns:
- operation filter
- Default:
""
-
version
int versionDeclares the durable handler contract version; incompatible definitions require a new identity.- Returns:
- positive version
- Default:
1
-