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.
Direct generated dispatch continuation, callable according to the installed policy contract.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddResultFinalizer(org.j7m.middleware.transport.api.InvocationResultFinalizer finalizer) Registers a bounded trusted result finalizer before generated body entry.default <T> TReads 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.invoke()Invokes the remaining host pipeline and eventual generated direct call.default CompletionStage<Void> Returns trusted physical completion for deferred admission ownership.default <T> voidputContext(Class<T> type, T value) Installs an exact-type host attachment for this invocation before body entry.default booleanReports actual host result-finalizer support, never inferred from application metadata.default org.j7m.middleware.api.ObjectReftarget()Returns the actual prepared/committed target reference supplied by the hosting runtime.
-
Method Details
-
invoke
-
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
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
Installs an exact-type host attachment for this invocation before body entry.- Type Parameters:
T- attachment type- Parameters:
type- exact keyvalue- assignable non-null host-owned value
-
context
Reads an existing exact-type attachment under serial CALL context.- Type Parameters:
T- attachment type- Parameters:
type- exact key- Returns:
- installed value
-
findContext
-