Record Class QueueConsumerProfile

java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.QueueConsumerProfile
Record Components:
source - authenticated routed queue supporting native push
deduplication - D12 guard backend; required for EXTERNAL_GUARD
codec - explicitly schema-allowlisted thread-safe payload codec
tenant - stable authorized source tenant
namespace - stable logical handler namespace, independent of deployment artifact
group - finite host consumer group
member - stable host member identity, not an application-supplied claim
queues - finite destination allowlist, at most256
visibility - positive receipt lease, 1second..1day and greater than3operationBudgets
operationBudget - finite source command budget, 1millisecond..25seconds
handlerBudget - original application budget, 1millisecond..1day
retention - D12 guard retention, 1millisecond..1day
strategy - explicit durable effect protocol

public record QueueConsumerProfile(org.j7m.middleware.distributed.ReplicatedQueue source, org.j7m.middleware.distributed.DeduplicatedRpc deduplication, ManagedPayloadCodec codec, String tenant, String namespace, String group, String member, Set<String> queues, Duration visibility, Duration operationBudget, Duration handlerBudget, Duration retention, QueueConsumerProfile.Strategy strategy) extends Record
Explicit authorized queue worker configuration. An annotation cannot select credentials, endpoint classes or a new authority. Members must be unique among simultaneous host workers and stable on restart to resume their exact pending receipt. Native FIFO permits one live delivery per queue; parallelism is across queues. Borrowed endpoints/codecs remain host-owned.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Omits endpoint and tenant credentials from diagnostics.
      Specified by:
      toString in class Record
      Returns:
      fixed host-owned profile label
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • source

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

      public org.j7m.middleware.distributed.DeduplicatedRpc deduplication()
      Returns the value of the deduplication record component.
      Returns:
      the value of the deduplication record component
    • codec

      public ManagedPayloadCodec codec()
      Returns the value of the codec record component.
      Returns:
      the value of the codec record component
    • tenant

      public String tenant()
      Returns the value of the tenant record component.
      Returns:
      the value of the tenant record component
    • namespace

      public String namespace()
      Returns the value of the namespace record component.
      Returns:
      the value of the namespace record component
    • group

      public String group()
      Returns the value of the group record component.
      Returns:
      the value of the group record component
    • member

      public String member()
      Returns the value of the member record component.
      Returns:
      the value of the member record component
    • queues

      public Set<String> queues()
      Returns the value of the queues record component.
      Returns:
      the value of the queues record component
    • visibility

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

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

      public Duration handlerBudget()
      Returns the value of the handlerBudget record component.
      Returns:
      the value of the handlerBudget record component
    • retention

      public Duration retention()
      Returns the value of the retention record component.
      Returns:
      the value of the retention record component
    • strategy

      public QueueConsumerProfile.Strategy strategy()
      Returns the value of the strategy record component.
      Returns:
      the value of the strategy record component