Record Class BindingPolicy
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.BindingPolicy
- Record Components:
selection- target selection strategy- behavior when no eligible target existswaitLimit- maximum availability waitpollInterval- bounded discovery polling intervaldiscoveryTimeout- maximum one discovery operation budgetinvocationTimeout- default maximum one business invocation budgetmaxCandidates- bounded candidate and generation-history capacity,1..256
public record BindingPolicy(BindingPolicy.Selection selection, BindingPolicy.Unavailable unavailable, Duration waitLimit, Duration pollInterval, Duration discoveryTimeout, Duration invocationTimeout, int maxCandidates)
extends Record
Immutable host-owned limits and selection for one live binding; annotation policy IDs reference
instances of this value. All deadlines also obey a shorter caller-supplied remaining budget.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSupported deterministic selection policies.static enumExplicit unavailable behavior; optional results never manufacture a null business proxy. -
Constructor Summary
ConstructorsConstructorDescriptionBindingPolicy(BindingPolicy.Selection selection, BindingPolicy.Unavailable unavailable, Duration waitLimit, Duration pollInterval, Duration discoveryTimeout, Duration invocationTimeout, int maxCandidates) Validates finite limits. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thediscoveryTimeoutrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinvocationTimeoutrecord component.intReturns the value of themaxCandidatesrecord component.Returns the value of thepollIntervalrecord component.Returns the value of theselectionrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunavailablerecord component.Returns the value of thewaitLimitrecord component.
-
Constructor Details
-
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. -
selection
-
waitLimit
-
pollInterval
Returns the value of thepollIntervalrecord component.- Returns:
- the value of the
pollIntervalrecord component
-
discoveryTimeout
Returns the value of thediscoveryTimeoutrecord component.- Returns:
- the value of the
discoveryTimeoutrecord component
-
invocationTimeout
Returns the value of theinvocationTimeoutrecord component.- Returns:
- the value of the
invocationTimeoutrecord component
-
maxCandidates
public int maxCandidates()Returns the value of themaxCandidatesrecord component.- Returns:
- the value of the
maxCandidatesrecord component
-