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 Classes
    Modifier and Type
    Class
    Description
    static final record 
    Explicit finite host publication capability, never selected from arbitrary annotation classes.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates at most256 explicitly named producer capabilities.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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:
      validate in interface org.j7m.middleware.application.components.ManagedHostBindings.Factory
      Parameters:
      dependency - generated resource dependency
      scope - 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:
      bind in interface org.j7m.middleware.application.components.ManagedHostBindings.Factory
      Parameters:
      dependency - validated producer edge
      Returns:
      binding that never owns the borrowed backends