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 registrationcontractName- exact authorized binary name, never used for class loadingnamespace- stable logical publication namespacetenant- actual authorized backend tenantqueue- borrowed authenticated native facadeintents- borrowed D12 first-writer intent backend in its own authorized scopecodec- trusted side-effect-free schema-allowlisted payload codecretention- native D12 intent retention1ms..1daymaximumAttempts- queue poison limit1..1000queues- 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 Summary
ConstructorsConstructorDescriptionRegistration(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(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.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. -
Method Summary
Modifier and TypeMethodDescriptioncodec()Returns the value of thecodecrecord component.Class<?> contract()Returns the value of thecontractrecord component.Returns the value of thecontractNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.j7m.middleware.distributed.DeduplicatedRpcintents()Returns the value of theintentsrecord component.intReturns the value of themaximumAttemptsrecord component.Returns the value of thenamespacerecord component.org.j7m.middleware.distributed.ReplicatedQueuequeue()Returns the value of thequeuerecord component.queues()Returns the value of thequeuesrecord component.Returns the value of theretentionrecord component.tenant()Returns the value of thetenantrecord component.toString()Omits endpoints, tenant and payload schema from incidental diagnostics.
-
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 interfacenamespace- publication namespacetenant- authorized tenantqueue- borrowed queueintents- borrowed first-intent journalcodec- explicit bounded payload codecretention- first-intent retentionmaximumAttempts- poison limitqueues- 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 loadingnamespace- publication namespacetenant- authorized tenantqueue- borrowed queueintents- borrowed first-intent journalcodec- explicit bounded payload codecretention- first-intent retentionmaximumAttempts- poison limitqueues- authorized destinations
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
contract
-
contractName
Returns the value of thecontractNamerecord component.- Returns:
- the value of the
contractNamerecord component
-
namespace
-
tenant
-
queue
-
intents
-
codec
-
retention
-
maximumAttempts
public int maximumAttempts()Returns the value of themaximumAttemptsrecord component.- Returns:
- the value of the
maximumAttemptsrecord component
-
queues
-