Record Class ManagedJobProfile
java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedJobProfile
- Record Components:
backend- authenticated execution source with pinned live-claim sessionscodec- immutable data-only codec/schema allowlistnamespace- stable host-owned tenant/resource namespacelease- native claim lease, at least2seconds and at most1dayrenewInterval- bounded renewal interval, at most one third of the leaseoperationBudget- original native RPC budget, at most one third of the leasehandlerBudget- finite owned invocation budget, never automatically extended by renewalsreconnectDelay- bounded failed-transport retry delay, not idle source pollingserial- whether native serialGroup must prevent overlapping authoritative claims
public record ManagedJobProfile(ManagedExecutionBackend backend, ManagedPayloadCodec codec, String namespace, Duration lease, Duration renewInterval, Duration operationBudget, Duration handlerBudget, Duration reconnectDelay, boolean serial)
extends Record
Explicit trusted native job source and bounded worker/renewal policy.
The backend is borrowed. Serial execution means at most one current native lease for the logical
definition; expired uncooperative Java may still run but cannot commit protected native effects.
-
Constructor Summary
ConstructorsConstructorDescriptionManagedJobProfile(ManagedExecutionBackend backend, ManagedPayloadCodec codec, String namespace, Duration lease, Duration renewInterval, Duration operationBudget, Duration handlerBudget, Duration reconnectDelay, boolean serial) Validates host configuration without connecting or constructing application code. -
Method Summary
Modifier and TypeMethodDescriptionbackend()Returns the value of thebackendrecord component.codec()Returns the value of thecodecrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thehandlerBudgetrecord component.final inthashCode()Returns a hash code value for this object.lease()Returns the value of theleaserecord component.Returns the value of thenamespacerecord component.Returns the value of theoperationBudgetrecord component.Returns the value of thereconnectDelayrecord component.Returns the value of therenewIntervalrecord component.booleanserial()Returns the value of theserialrecord component.toString()Omits endpoint, namespace and payload data.
-
Constructor Details
-
ManagedJobProfile
public ManagedJobProfile(ManagedExecutionBackend backend, ManagedPayloadCodec codec, String namespace, Duration lease, Duration renewInterval, Duration operationBudget, Duration handlerBudget, Duration reconnectDelay, boolean serial) Validates host configuration without connecting or constructing application code.- Throws:
NullPointerException- for missing collaborators or durationsIllegalArgumentException- for invalid finite capacities or timing
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
backend
-
codec
-
namespace
-
lease
-
renewInterval
Returns the value of therenewIntervalrecord component.- Returns:
- the value of the
renewIntervalrecord component
-
operationBudget
Returns the value of theoperationBudgetrecord component.- Returns:
- the value of the
operationBudgetrecord component
-
handlerBudget
Returns the value of thehandlerBudgetrecord component.- Returns:
- the value of the
handlerBudgetrecord component
-
reconnectDelay
Returns the value of thereconnectDelayrecord component.- Returns:
- the value of the
reconnectDelayrecord component
-
serial
-