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.
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 TypeMethodDescriptionbyte[]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 identitycontract- server-configured contract aliaspayload- bounded opaque application bytesdeadline- 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 revisionrequestId- stable identitycontract- configured aliaspayload- application bytesdeadline- absolute deadline- Returns:
- application response
- Throws:
IOException- when revision pinning is unsupported or admission fails
-