Interface ManagedInvocationPolicy.Proceed

Enclosing interface:
ManagedInvocationPolicy
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ManagedInvocationPolicy.Proceed
Direct generated dispatch continuation, callable according to the installed policy contract.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    addResultFinalizer(org.j7m.middleware.transport.api.InvocationResultFinalizer finalizer)
    Registers a bounded trusted result finalizer before generated body entry.
    default <T> T
    context(Class<T> type)
    Reads an existing exact-type attachment under serial CALL context.
    default <T> Optional<T>
    findContext(Class<T> type)
    Finds a typed attachment only inside the same actual owned CALL.
    Invokes the remaining host pipeline and eventual generated direct call.
    Returns trusted physical completion for deferred admission ownership.
    default <T> void
    putContext(Class<T> type, T value)
    Installs an exact-type host attachment for this invocation before body entry.
    default boolean
    Reports actual host result-finalizer support, never inferred from application metadata.
    default org.j7m.middleware.api.ObjectRef
    Returns the actual prepared/committed target reference supplied by the hosting runtime.
  • Method Details

    • invoke

      Object invoke() throws Exception
      Invokes the remaining host pipeline and eventual generated direct call.
      Returns:
      application result, possibly null
      Throws:
      Exception - if dispatch fails
    • target

      default org.j7m.middleware.api.ObjectRef target()
      Returns the actual prepared/committed target reference supplied by the hosting runtime. A reference is routing evidence, not a bearer authority token. Missing target information must fail closed for a policy requiring a concrete resource identity.
      Returns:
      concrete exported target, or null when the host cannot supply it
    • physicalCompletion

      default CompletionStage<Void> physicalCompletion()
      Returns trusted physical completion for deferred admission ownership. Cancellation of a reply stage must not complete this host-owned view.
      Returns:
      physical completion, or null for a legacy synchronous pipeline
    • supportsResultFinalizers

      default boolean supportsResultFinalizers()
      Reports actual host result-finalizer support, never inferred from application metadata.
      Returns:
      false for a legacy synchronous continuation
    • addResultFinalizer

      default void addResultFinalizer(org.j7m.middleware.transport.api.InvocationResultFinalizer finalizer)
      Registers a bounded trusted result finalizer before generated body entry.
      Parameters:
      finalizer - host-owned callback; executes after actual USER work settles
    • putContext

      default <T> void putContext(Class<T> type, T value)
      Installs an exact-type host attachment for this invocation before body entry.
      Type Parameters:
      T - attachment type
      Parameters:
      type - exact key
      value - assignable non-null host-owned value
    • context

      default <T> T context(Class<T> type)
      Reads an existing exact-type attachment under serial CALL context.
      Type Parameters:
      T - attachment type
      Parameters:
      type - exact key
      Returns:
      installed value
    • findContext

      default <T> Optional<T> findContext(Class<T> type)
      Finds a typed attachment only inside the same actual owned CALL. Empty denotes absence, never unsupported or physically closed access.
      Type Parameters:
      T - attachment type
      Parameters:
      type - exact key
      Returns:
      optional current frame value