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.
  • 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.