Record Class ClientCall
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.ClientCall
- Record Components:
contract- complete public contract identitycontractType- declared business interface, including its inherited declarationsmethod- actual business-interface method corresponding to that identitytarget- exact reference captured once for the logical calldeadlineNanos- absolute monotonic deadline; negative values are valid
public record ClientCall(ManagedServiceContract contract, Class<?> contractType, Method method, ObjectRef target, long deadlineNanos)
extends Record
Immutable trusted-host description of one logical dependency call. Arguments and caller
authority stay in its attempt closure; interception never changes the pinned target or deadline.
The absolute deadline uses the local JVM's
System.nanoTime() domain and is not wire data.-
Constructor Summary
ConstructorsConstructorDescriptionClientCall(ManagedServiceContract contract, Class<?> contractType, Method method, ObjectRef target, long deadlineNanos) Validates that policy metadata belongs to the actual full method signature. -
Method Summary
Modifier and TypeMethodDescriptioncontract()Returns the value of thecontractrecord component.Class<?> Returns the value of thecontractTyperecord component.longReturns the value of thedeadlineNanosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClientCall
public ClientCall(ManagedServiceContract contract, Class<?> contractType, Method method, ObjectRef target, long deadlineNanos) Validates that policy metadata belongs to the actual full method signature.- Parameters:
contract- complete public contractcontractType- declared business interfacemethod- actual business-interface methodtarget- exact target referencedeadlineNanos- absolute local monotonic deadline- Throws:
NullPointerException- if a required component is nullIllegalArgumentException- if the signature does not match
-
-
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. -
contract
-
contractType
Returns the value of thecontractTyperecord component.- Returns:
- the value of the
contractTyperecord component
-
method
-
target
-
deadlineNanos
public long deadlineNanos()Returns the value of thedeadlineNanosrecord component.- Returns:
- the value of the
deadlineNanosrecord component
-