Record Class ClientCall

java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.ClientCall
Record Components:
contract - complete public contract identity
contractType - declared business interface, including its inherited declarations
method - actual business-interface method corresponding to that identity
target - exact reference captured once for the logical call
deadlineNanos - 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 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 contract
      contractType - declared business interface
      method - actual business-interface method
      target - exact target reference
      deadlineNanos - absolute local monotonic deadline
      Throws:
      NullPointerException - if a required component is null
      IllegalArgumentException - if the signature does not match
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • contract

      public ManagedServiceContract contract()
      Returns the value of the contract record component.
      Returns:
      the value of the contract record component
    • contractType

      public Class<?> contractType()
      Returns the value of the contractType record component.
      Returns:
      the value of the contractType record component
    • method

      public Method method()
      Returns the value of the method record component.
      Returns:
      the value of the method record component
    • target

      public ObjectRef target()
      Returns the value of the target record component.
      Returns:
      the value of the target record component
    • deadlineNanos

      public long deadlineNanos()
      Returns the value of the deadlineNanos record component.
      Returns:
      the value of the deadlineNanos record component