Class ManagedExecutionBackend.Session
java.lang.Object
org.j7m.middleware.application.distributed.ManagedExecutionBackend.Session
- Enclosing class:
ManagedExecutionBackend
Pinned host-only live execution capability. It is not installed in an application context.
-
Method Summary
Modifier and TypeMethodDescriptionorg.j7m.middleware.distributed.ExecutionClientclient()Returns the exact fixed client for every mutation and query of this live claim.longepoch()Returns the immutable pinned partition epoch, not a current authority assertion.group()Returns the actual pinned physical group.org.j7m.middleware.distributed.DurableJobsjobs()Returns ownership-fenced job operations on this exact session.org.j7m.middleware.distributed.DurableSagassagas()Returns ownership-fenced saga operations on this exact session.org.j7m.middleware.distributed.ExecutionSessionOpens direct native claim push on this exact captured group and epoch.toString()Omits scope, endpoints and credentials.voidChecks current quorum ownership without changing the captured route.
-
Method Details
-
group
Returns the actual pinned physical group.- Returns:
- stable trusted group identity
-
epoch
public long epoch()Returns the immutable pinned partition epoch, not a current authority assertion.- Returns:
- captured positive epoch
-
client
public org.j7m.middleware.distributed.ExecutionClient client()Returns the exact fixed client for every mutation and query of this live claim.- Returns:
- host-only client which never follows MOVED
-
jobs
public org.j7m.middleware.distributed.DurableJobs jobs()Returns ownership-fenced job operations on this exact session.- Returns:
- job facade
-
sagas
public org.j7m.middleware.distributed.DurableSagas sagas()Returns ownership-fenced saga operations on this exact session.- Returns:
- saga facade
-
subscribe
public org.j7m.middleware.distributed.ExecutionSession subscribe(String prefix, String kind, String owner, long leaseMillis, Instant deadline) throws IOException Opens direct native claim push on this exact captured group and epoch. A reconnect creates a new session rather than retargeting an already running claim.- Parameters:
prefix- finite run identity prefixkind- JOB or SAGAowner- host-generated unique worker identityleaseMillis- finite native claim leasedeadline- original handshake budget- Returns:
- owned transport session, without ownership of borrowed backend endpoints
- Throws:
IOException- for revoked ownership or unavailable push capability
-
verify
Checks current quorum ownership without changing the captured route.- Parameters:
deadline- original verification deadline- Throws:
IOException- if group, epoch or phase no longer permits effects
-
toString
-