Class ManagedObservedPolicy

java.lang.Object
org.j7m.middleware.application.distributed.ManagedObservedPolicy
All Implemented Interfaces:
org.j7m.middleware.application.components.ManagedInvocationPolicy

public final class ManagedObservedPolicy extends Object implements org.j7m.middleware.application.components.ManagedInvocationPolicy
Optional D15 adapter for finite host-named application spans. It creates no additional RPC span. Observers are borrowed host resources; bindings never close their exporter. Span completion follows settled user work and inner transaction/durable finalizers, before transport encoding.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.j7m.middleware.application.components.ManagedInvocationPolicy

    org.j7m.middleware.application.components.ManagedInvocationPolicy.Binding, org.j7m.middleware.application.components.ManagedInvocationPolicy.Phase, org.j7m.middleware.application.components.ManagedInvocationPolicy.Proceed
  • Constructor Summary

    Constructors
    Constructor
    Description
    ManagedObservedPolicy(Map<String, org.j7m.middleware.integrations.Observability> observers)
    Installs explicit bounded observer profiles.
  • Method Summary

    Modifier and Type
    Method
    Description
    Set<Class<? extends Annotation>>
    org.j7m.middleware.application.components.ManagedInvocationPolicy.Binding
    bind(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
    org.j7m.middleware.application.components.ManagedInvocationPolicy.Phase
    void
    validate(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.j7m.middleware.application.components.ManagedInvocationPolicy

    bindHosted, validateComponent, validateExposure, validateHosted, validateHostedExposure, validateHostedExposure
  • Constructor Details

    • ManagedObservedPolicy

      public ManagedObservedPolicy(Map<String, org.j7m.middleware.integrations.Observability> observers)
      Installs explicit bounded observer profiles.
      Parameters:
      observers - at most64 names mapped to existing host-owned concrete D15 observers
      Throws:
      IllegalArgumentException - for invalid names or capacity
  • Method Details

    • phase

      public org.j7m.middleware.application.components.ManagedInvocationPolicy.Phase phase()
      Specified by:
      phase in interface org.j7m.middleware.application.components.ManagedInvocationPolicy
    • annotationTypes

      public Set<Class<? extends Annotation>> annotationTypes()
      Specified by:
      annotationTypes in interface org.j7m.middleware.application.components.ManagedInvocationPolicy
    • validate

      public void validate(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
      Specified by:
      validate in interface org.j7m.middleware.application.components.ManagedInvocationPolicy
    • bind

      public org.j7m.middleware.application.components.ManagedInvocationPolicy.Binding bind(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
      Specified by:
      bind in interface org.j7m.middleware.application.components.ManagedInvocationPolicy