Interface Outboxes

    • Method Detail

      • getOrCreateOutbox

        Outbox getOrCreateOutbox​(OutboxConfig outboxConfig,
                                 Consumer<Message> messageConsumer)
        Get an existing Outbox instance or create a new instance. If an existing Outbox with a matching OutboxName is already created then that instance is returned (irrespective of whether the redeliveryPolicy, etc. have the same values)
        Parameters:
        outboxConfig - the outbox configuration
        messageConsumer - the asynchronous message consumer. See PatternMatchingMessageHandler
        Returns:
        the Outbox
      • getOrCreateOutbox

        Outbox getOrCreateOutbox​(OutboxConfig outboxConfig)
        Get an existing Outbox instance or create a new instance. If an existing Outbox with a matching OutboxName is already created then that instance is returned (irrespective of whether the redeliveryPolicy, etc. have the same values)
        Remember to call Outbox.consume(Consumer) to start consuming messages
        Parameters:
        outboxConfig - the outbox configuration
        Returns:
        the Outbox
      • getOrCreateForwardingOutbox

        default Outbox getOrCreateForwardingOutbox​(OutboxConfig outboxConfig,
                                                   dk.cloudcreate.essentials.reactive.EventHandler eventHandler)
        Get an existing Outbox instance or create a new instance that forwards to an EventHandler.
        If an existing Outbox with a matching OutboxName is already created then that instance is returned (irrespective of whether the redeliveryPolicy, etc. have the same values)
        Parameters:
        outboxConfig - the outbox configuration
        eventHandler - the asynchronous event handler
        Returns:
        the Outbox