Interface OutboxMessageEventContext

All Superinterfaces:
EventContext

public interface OutboxMessageEventContext extends EventContext
Describes the message stored and again published by the OutboxService
  • Method Details

    • create

      static OutboxMessageEventContext create(String targetEvent)
      Parameters:
      targetEvent - the target event with which the message is stored and again published by the OutboxService
      Returns:
      the OutboxMessageEventContext
    • getIsInbound

      Boolean getIsInbound()
      Returns the inbound flag
      Returns:
      true if the message is again published by the OutboxService and false if the message should be stored.
    • setIsInbound

      void setIsInbound(boolean inbound)
      Sets the inbound flag
      Parameters:
      inbound - true if the message is again published by the OutboxService and false if the message should be stored.
    • getTimestamp

      Instant getTimestamp()
      Returns:
      the timestamp when the message was stored in the outbox
    • setTimestamp

      void setTimestamp(Instant timestamp)
      Sets the timestamp when the message was stored in the outbox.
      Parameters:
      timestamp - the timestamp
    • getMessage

      String getMessage()
      Returns:
      the outbox message stored and again published by the OutboxService
    • setMessage

      void setMessage(String message)
      Sets the outbox message stored and again published by the OutboxService
      Parameters:
      message - the outbox message