Record Class ManagedQueuePublisherFactory.Registration

java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedQueuePublisherFactory.Registration
Record Components:
contract - exact producer interface, or null for a trusted symbolic registration
contractName - exact authorized binary name, never used for class loading
namespace - stable logical publication namespace
tenant - actual authorized backend tenant
queue - borrowed authenticated native facade
intents - borrowed D12 first-writer intent backend in its own authorized scope
codec - trusted side-effect-free schema-allowlisted payload codec
retention - native D12 intent retention1ms..1day
maximumAttempts - queue poison limit1..1000
queues - finite destination allowlist, at most256
Enclosing class:
ManagedQueuePublisherFactory

public static record ManagedQueuePublisherFactory.Registration(Class<?> contract, String contractName, String namespace, String tenant, org.j7m.middleware.distributed.ReplicatedQueue queue, org.j7m.middleware.distributed.DeduplicatedRpc intents, ManagedPayloadCodec codec, Duration retention, int maximumAttempts, Set<String> queues) extends Record
Explicit finite host publication capability, never selected from arbitrary annotation classes.
  • Constructor Details

    • Registration

      public Registration(Class<?> contract, String contractName, String namespace, String tenant, org.j7m.middleware.distributed.ReplicatedQueue queue, org.j7m.middleware.distributed.DeduplicatedRpc intents, ManagedPayloadCodec codec, Duration retention, int maximumAttempts, Set<String> queues)
      Copies bounds without connecting or constructing application values.
    • Registration

      public Registration(Class<?> contract, String namespace, String tenant, org.j7m.middleware.distributed.ReplicatedQueue queue, org.j7m.middleware.distributed.DeduplicatedRpc intents, ManagedPayloadCodec codec, Duration retention, int maximumAttempts, Set<String> queues)
      Registers an exact host-visible producer interface identity.
      Parameters:
      contract - ordinary interface
      namespace - publication namespace
      tenant - authorized tenant
      queue - borrowed queue
      intents - borrowed first-intent journal
      codec - explicit bounded payload codec
      retention - first-intent retention
      maximumAttempts - poison limit
      queues - authorized destinations
    • Registration

      public Registration(String contractName, String namespace, String tenant, org.j7m.middleware.distributed.ReplicatedQueue queue, org.j7m.middleware.distributed.DeduplicatedRpc intents, ManagedPayloadCodec codec, Duration retention, int maximumAttempts, Set<String> queues)
      Authorizes an application-owned interface by name. Its actual generated dependency type, annotations and full method/codec contract are validated before construction.
      Parameters:
      contractName - exact authorized binary name, without class loading
      namespace - publication namespace
      tenant - authorized tenant
      queue - borrowed queue
      intents - borrowed first-intent journal
      codec - explicit bounded payload codec
      retention - first-intent retention
      maximumAttempts - poison limit
      queues - authorized destinations
  • Method Details

    • toString

      public String toString()
      Omits endpoints, tenant and payload schema from incidental diagnostics.
      Specified by:
      toString in class Record
      Returns:
      fixed safe 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.
    • contract

      public Class<?> contract()
      Returns the value of the contract record component.
      Returns:
      the value of the contract record component
    • contractName

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

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

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

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

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

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

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

      public int maximumAttempts()
      Returns the value of the maximumAttempts record component.
      Returns:
      the value of the maximumAttempts record component
    • queues

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