Record Class InvocationBoundary
java.lang.Object
java.lang.Record
org.j7m.middleware.transport.api.InvocationBoundary
- Record Components:
target- authoritative exported objectmethod- verified complete method identityoptions- admitted invocation budget and correlationsecurity- authenticated caller context, nullable for anonymous ingressinboundBytes- trusted encoded application input size, or -1 when the host cannot establish it
public record InvocationBoundary(ObjectRef target, MethodDescriptor method, InvocationOptions options, SecurityContext security, int inboundBytes)
extends Record
Host-only invocation input established after transport authentication and authorization.
This value grants no authority to application-supplied metadata. Its diagnostic form omits security data.
-
Constructor Summary
ConstructorsConstructorDescriptionInvocationBoundary(ObjectRef target, MethodDescriptor method, InvocationOptions options, SecurityContext security) Creates a standalone host boundary with unknown input size.InvocationBoundary(ObjectRef target, MethodDescriptor method, InvocationOptions options, SecurityContext security, int inboundBytes) Validates required host inputs. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theinboundBytesrecord component.method()Returns the value of themethodrecord component.options()Returns the value of theoptionsrecord component.security()Returns the value of thesecurityrecord component.target()Returns the value of thetargetrecord component.toString()Returns safe metadata without credentials or application payloads.
-
Constructor Details
-
InvocationBoundary
public InvocationBoundary(ObjectRef target, MethodDescriptor method, InvocationOptions options, SecurityContext security) Creates a standalone host boundary with unknown input size. A host enforcing a payload limit must reject this unknown measurement rather than trusting application metadata.- Parameters:
target- authoritative targetmethod- verified methodoptions- finite budgetsecurity- actual caller identity
-
InvocationBoundary
public InvocationBoundary(ObjectRef target, MethodDescriptor method, InvocationOptions options, SecurityContext security, int inboundBytes) Validates required host inputs.
-
-
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. -
target
-
method
-
options
-
security
-
inboundBytes
public int inboundBytes()Returns the value of theinboundBytesrecord component.- Returns:
- the value of the
inboundBytesrecord component
-