Package kos.api
Interface EventBusSink
- All Known Subinterfaces:
EventPublisherSink,EventSubscriptionSink
public interface EventBusSink
Bridges the communication between the local EventBus with a
remote broker (e.g. ApacheMQ, RabbitMQ, Apache Kafka, AWS SQS,
GCP PubSub, etc).
Notice: do not implement this interface directly. Instead, it
is recommended to implement
EventPublisherSink and EventSubscriptionSink.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classRepresents the outcome of an attempt to initialise eitherEventSubscriptionSinkorEventPublisherSink. -
Method Summary
Modifier and TypeMethodDescriptiondefault intDefines the resolution priority, where the bigger the returned value higher the priority.Initialises the Sink.
-
Method Details
-
getPriority
default int getPriority()Defines the resolution priority, where the bigger the returned value higher the priority. Defaults to 0. -
initialize
Initialises the Sink. In practical terms, this method is expected to leverage all resources required to publish or receive messages from the remote broker.
-