Record Class OutboxRelayProfile

java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.OutboxRelayProfile
Record Components:
publication - exact authorized logical SQL profile
destination - borrowed authenticated queue facade
queue - authorized destination FIFO queue
maximumBatch - aggregate heads per run, 1..256
interval - delay after an actual completed run, 1ms..1minute
operationBudget - original source/send budget, 1ms..25seconds

public record OutboxRelayProfile(OutboxProfile publication, org.j7m.middleware.distributed.ReplicatedQueue destination, String queue, int maximumBatch, Duration interval, Duration operationBudget) extends Record
Finite host relay policy over the existing JDBC outbox protocol. DB reads are bounded periodic work batches, not native queue claim polling. Relay connections are independently owned; the publication's caller Connection is never borrowed across transactions.
  • Constructor Details

    • OutboxRelayProfile

      public OutboxRelayProfile(OutboxProfile publication, org.j7m.middleware.distributed.ReplicatedQueue destination, String queue, int maximumBatch, Duration interval, Duration operationBudget)
      Validates bounded settings without opening a Connection or worker.
  • Method Details

    • toString

      public String toString()
      Omits endpoints, tenant and destination names from diagnostics.
      Specified by:
      toString in class Record
      Returns:
      safe fixed profile identity
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • publication

      public OutboxProfile publication()
      Returns the value of the publication record component.
      Returns:
      the value of the publication record component
    • destination

      public org.j7m.middleware.distributed.ReplicatedQueue destination()
      Returns the value of the destination record component.
      Returns:
      the value of the destination record component
    • queue

      public String queue()
      Returns the value of the queue record component.
      Returns:
      the value of the queue record component
    • maximumBatch

      public int maximumBatch()
      Returns the value of the maximumBatch record component.
      Returns:
      the value of the maximumBatch record component
    • interval

      public Duration interval()
      Returns the value of the interval record component.
      Returns:
      the value of the interval record component
    • operationBudget

      public Duration operationBudget()
      Returns the value of the operationBudget record component.
      Returns:
      the value of the operationBudget record component