Record Class DurableQueueConfig

java.lang.Object
java.lang.Record
org.j7m.middleware.messaging.DurableQueueConfig
Record Components:
durableLog - durable log substrate
queueOptions - queue limits and policies
outboxOptions - outbox limits and policies
inboxOptions - inbox limits and policies
clock - clock used for deterministic time semantics
ownsDurableLog - whether the queue closes the durable log
maxEventPayloadBytes - maximum encoded queue-event payload size; the effective value is also capped by the strict queue event codec so a queue never writes an event that its own recovery codec rejects

Duplicate idempotency and dedupe decisions, terminal message summaries, and completed outbox records are retained in bounded deterministic insertion order. Once an old protection entry is evicted, a repeated idempotency key, dedupe key, or completed outbox entry may be treated as a new operation rather than a retained duplicate decision. Live queued messages, pending outbox records, and inbox dedupe entries remain governed by their explicit queue, outbox, and inbox limits.


public record DurableQueueConfig(org.j7m.middleware.api.durablelog.DurableLog durableLog, org.j7m.middleware.api.messaging.QueueOptions queueOptions, org.j7m.middleware.api.messaging.OutboxOptions outboxOptions, org.j7m.middleware.api.messaging.InboxOptions inboxOptions, Clock clock, boolean ownsDurableLog, long maxEventPayloadBytes) extends Record
Immutable durable queue configuration.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DurableQueueConfig(org.j7m.middleware.api.durablelog.DurableLog durableLog, org.j7m.middleware.api.messaging.QueueOptions queueOptions, org.j7m.middleware.api.messaging.OutboxOptions outboxOptions, org.j7m.middleware.api.messaging.InboxOptions inboxOptions, Clock clock)
    Creates a borrowed-log configuration using the default event payload limit derived from the supplied durable log.
    DurableQueueConfig(org.j7m.middleware.api.durablelog.DurableLog durableLog, org.j7m.middleware.api.messaging.QueueOptions queueOptions, org.j7m.middleware.api.messaging.OutboxOptions outboxOptions, org.j7m.middleware.api.messaging.InboxOptions inboxOptions, Clock clock, boolean ownsDurableLog, long maxEventPayloadBytes)
    Creates validated configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the clock record component.
    org.j7m.middleware.api.durablelog.DurableLog
    Returns the value of the durableLog record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    org.j7m.middleware.api.messaging.InboxOptions
    Returns the value of the inboxOptions record component.
    long
    Returns the value of the maxEventPayloadBytes record component.
    org.j7m.middleware.api.messaging.OutboxOptions
    Returns the value of the outboxOptions record component.
    boolean
    Returns the value of the ownsDurableLog record component.
    org.j7m.middleware.api.messaging.QueueOptions
    Returns the value of the queueOptions record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DurableQueueConfig

      public DurableQueueConfig(org.j7m.middleware.api.durablelog.DurableLog durableLog, org.j7m.middleware.api.messaging.QueueOptions queueOptions, org.j7m.middleware.api.messaging.OutboxOptions outboxOptions, org.j7m.middleware.api.messaging.InboxOptions inboxOptions, Clock clock, boolean ownsDurableLog, long maxEventPayloadBytes)
      Creates validated configuration.
      Throws:
      IllegalArgumentException - when durableLog is null
    • DurableQueueConfig

      public DurableQueueConfig(org.j7m.middleware.api.durablelog.DurableLog durableLog, org.j7m.middleware.api.messaging.QueueOptions queueOptions, org.j7m.middleware.api.messaging.OutboxOptions outboxOptions, org.j7m.middleware.api.messaging.InboxOptions inboxOptions, Clock clock)
      Creates a borrowed-log configuration using the default event payload limit derived from the supplied durable log.
      Parameters:
      durableLog - durable log substrate
      queueOptions - queue limits and policies
      outboxOptions - outbox limits and policies
      inboxOptions - inbox limits and policies
      clock - clock used for deterministic time semantics
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
    • durableLog

      public org.j7m.middleware.api.durablelog.DurableLog durableLog()
      Returns the value of the durableLog record component.
      Returns:
      the value of the durableLog record component
    • queueOptions

      public org.j7m.middleware.api.messaging.QueueOptions queueOptions()
      Returns the value of the queueOptions record component.
      Returns:
      the value of the queueOptions record component
    • outboxOptions

      public org.j7m.middleware.api.messaging.OutboxOptions outboxOptions()
      Returns the value of the outboxOptions record component.
      Returns:
      the value of the outboxOptions record component
    • inboxOptions

      public org.j7m.middleware.api.messaging.InboxOptions inboxOptions()
      Returns the value of the inboxOptions record component.
      Returns:
      the value of the inboxOptions record component
    • clock

      public Clock clock()
      Returns the value of the clock record component.
      Returns:
      the value of the clock record component
    • ownsDurableLog

      public boolean ownsDurableLog()
      Returns the value of the ownsDurableLog record component.
      Returns:
      the value of the ownsDurableLog record component
    • maxEventPayloadBytes

      public long maxEventPayloadBytes()
      Returns the value of the maxEventPayloadBytes record component.
      Returns:
      the value of the maxEventPayloadBytes record component