Interface ManagedInvocation

All Known Subinterfaces:
ClusterNodeEndpoint, HostingSupervisor
All Known Implementing Classes:
ApplicationManagerHost, ClusterNodeAgent, ClusterNodeClient
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 interface ManagedInvocation
Authenticated invocation of an application service hosted by the real middleware runtime. Request identity is preserved; timeout never proves that an application effect did not occur.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    invoke(String requestId, String contract, byte[] payload, Instant deadline)
    Invokes a configured service contract; callers cannot select classes or methods.
    default byte[]
    invokeRevision(String expectedRelease, String requestId, String contract, byte[] payload, Instant deadline)
    Invokes only when the admission gate still hosts the selected revision.
  • Method Details

    • invoke

      byte[] invoke(String requestId, String contract, byte[] payload, Instant deadline) throws IOException
      Invokes a configured service contract; callers cannot select classes or methods.
      Parameters:
      requestId - stable business request identity
      contract - server-configured contract alias
      payload - bounded opaque application bytes
      deadline - absolute deadline
      Returns:
      independent application result bytes
      Throws:
      IOException - unavailable, drained or unknown completion
    • invokeRevision

      default byte[] invokeRevision(String expectedRelease, String requestId, String contract, byte[] payload, Instant deadline) throws IOException
      Invokes only when the admission gate still hosts the selected revision.
      Parameters:
      expectedRelease - selected revision
      requestId - stable identity
      contract - configured alias
      payload - application bytes
      deadline - absolute deadline
      Returns:
      application response
      Throws:
      IOException - when revision pinning is unsupported or admission fails