Record Class ManagedOutboxFactory.Registration

java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedOutboxFactory.Registration
Record Components:
contract - exact ordinary producer interface, or null for trusted symbolic registration
contractName - exact authorized binary name; never used for class loading
profiles - immutable policy-name to exact publication/relay capability, at most64
Enclosing class:
ManagedOutboxFactory

public static record ManagedOutboxFactory.Registration(Class<?> contract, String contractName, Map<String, OutboxRelayProfile> profiles) extends Record
Finite ordinary producer capability. Each method's policy selects one authorized outbox.
  • Constructor Details

    • Registration

      public Registration(Class<?> contract, String contractName, Map<String, OutboxRelayProfile> profiles)
      Copies the registry without constructing values or opening connections.
    • Registration

      public Registration(Class<?> contract, Map<String, OutboxRelayProfile> profiles)
      Registers a host-visible exact interface identity.
      Parameters:
      contract - authorized ordinary producer interface
      profiles - finite publication capabilities
    • Registration

      public Registration(String contractName, Map<String, OutboxRelayProfile> profiles)
      Authorizes an application-owned interface by exact binary name. Actual generated dependency type and its entire method/schema contract are validated before construction; no class is loaded from this name and no application marker grants a capability.
      Parameters:
      contractName - authorized interface binary name
      profiles - finite publication capabilities
  • Method Details

    • toString

      public String toString()
      Omits connection and policy values from diagnostics.
      Specified by:
      toString in class Record
      Returns:
      fixed safe registration 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. 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.
    • 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
    • profiles

      public Map<String, OutboxRelayProfile> profiles()
      Returns the value of the profiles record component.
      Returns:
      the value of the profiles record component