Package kos.api
Interface EventBusSink
-
- All Known Subinterfaces:
EventPublisherSink,EventSubscriptionSink
public interface EventBusSinkBridges 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 implementEventPublisherSinkandEventSubscriptionSink.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEventBusSink.EventBusSyncInitializationRequest<T>static classEventBusSink.ResultRepresents the outcome of an attempt to initialise eitherEventSubscriptionSinkorEventPublisherSink.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intgetPriority()Defines the resolution priority, where the bigger the returned value higher the priority.<T> EventBusSink.Resultinitialize(EventBusSink.EventBusSyncInitializationRequest<T> request)Initialises the Sink.
-
-
-
Method Detail
-
getPriority
default int getPriority()
Defines the resolution priority, where the bigger the returned value higher the priority. Defaults to 0.
-
initialize
<T> EventBusSink.Result initialize(EventBusSink.EventBusSyncInitializationRequest<T> request)
Initialises the Sink. In practical terms, this method is expected to leverage all resources required to publish or receive messages from the remote broker.
-
-