Class ManagedQueuePublisherFactory
java.lang.Object
org.j7m.middleware.application.distributed.ManagedQueuePublisherFactory
- All Implemented Interfaces:
org.j7m.middleware.application.components.ManagedHostBindings.Factory
public final class ManagedQueuePublisherFactory
extends Object
implements org.j7m.middleware.application.components.ManagedHostBindings.Factory
Trusted resource binding implementing ordinary producer interfaces without application producer
bodies. Publication intent preserves first-writer canonical content and trace across retries;
confirmed sequence means native queue send committed, not atomicity with caller DB/external effects.
Endpoints/codecs remain borrowed; closing a binding only revokes its local proxy.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordExplicit finite host publication capability, never selected from arbitrary annotation classes. -
Constructor Summary
ConstructorsConstructorDescriptionManagedQueuePublisherFactory(Map<String, ManagedQueuePublisherFactory.Registration> registrations) Creates at most256 explicitly named producer capabilities. -
Method Summary
Modifier and TypeMethodDescriptionorg.j7m.middleware.application.components.ManagedHostBindings.BoundValuebind(org.j7m.middleware.application.api.ManagedDependency dependency) Creates an owned revocable local proxy; network work happens only in an actual USER call.voidvalidate(org.j7m.middleware.application.api.ManagedDependency dependency, org.j7m.middleware.annotations.Scope.Kind scope) Validates provider-only strict resource binding before component constructors.
-
Constructor Details
-
ManagedQueuePublisherFactory
public ManagedQueuePublisherFactory(Map<String, ManagedQueuePublisherFactory.Registration> registrations) Creates at most256 explicitly named producer capabilities.- Parameters:
registrations- resource name to immutable host registration- Throws:
IllegalArgumentException- for invalid capacity/name/method contract
-
-
Method Details
-
validate
public void validate(org.j7m.middleware.application.api.ManagedDependency dependency, org.j7m.middleware.annotations.Scope.Kind scope) Validates provider-only strict resource binding before component constructors.- Specified by:
validatein interfaceorg.j7m.middleware.application.components.ManagedHostBindings.Factory- Parameters:
dependency- generated resource dependencyscope- component capture scope- Throws:
IllegalArgumentException- for unknown resource, refresh or unsupported metadata
-
bind
public org.j7m.middleware.application.components.ManagedHostBindings.BoundValue bind(org.j7m.middleware.application.api.ManagedDependency dependency) Creates an owned revocable local proxy; network work happens only in an actual USER call.- Specified by:
bindin interfaceorg.j7m.middleware.application.components.ManagedHostBindings.Factory- Parameters:
dependency- validated producer edge- Returns:
- binding that never owns the borrowed backends
-