the type of the Custom Element
the type of the Message Event
Decorate the listener method which is invoked when the matching Event is published.
When the type of the Event is not specified by GatewaySubscriptionBuilder.type, then the event type is discovered from the decorated method name.
The pattern is <prefix><event-type>
, where <prefix>
is by default on
.
the prefix used to discover the type of the message event from the method name
Set the listener options.
the options
Set the type of the event.
the event type
Generated using TypeDoc
The builder handles the registration of subscriptions based on an existing method using the decorator style. It should only be used from AbstractGatewayBuilder.subscribe.
By default, the type of the Message Event is resolved from the name of the method. However, it can be directly set with GatewaySubscriptionBuilder.type.
The options of the subscription can be provided with GatewaySubscriptionBuilder.options.