Record Class AnnotatedServiceMethodDescriptor
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.AnnotatedServiceMethodDescriptor
- Record Components:
methodName- Java method nameremote- whether the method is exported remotelyidempotent- whether retry/dedupe metadata marks the method idempotentrequiredRole- required caller role, or the empty stringrequiredPermission- required permission action, or the empty stringresource- required permission resource, or the empty stringmetadata- safe additional metadata
public record AnnotatedServiceMethodDescriptor(String methodName, boolean remote, boolean idempotent, String requiredRole, String requiredPermission, String resource, Map<String,String> metadata)
extends Record
Stable descriptor derived from an annotated service method.
The descriptor records only safe method metadata. Security, idempotency, deadline, retry, and backpressure fields are used to validate that the annotation-first model maps to the same public invocation semantics as the lower-level API.
-
Constructor Summary
Constructors -
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.booleanReturns the value of theidempotentrecord component.metadata()Returns the value of themetadatarecord component.Returns the value of themethodNamerecord component.booleanremote()Returns the value of theremoterecord component.Returns the value of therequiredPermissionrecord component.Returns the value of therequiredRolerecord component.resource()Returns the value of theresourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnnotatedServiceMethodDescriptor
-
-
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. -
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
remote
-
idempotent
public boolean idempotent()Returns the value of theidempotentrecord component.- Returns:
- the value of the
idempotentrecord component
-
requiredRole
Returns the value of therequiredRolerecord component.- Returns:
- the value of the
requiredRolerecord component
-
requiredPermission
Returns the value of therequiredPermissionrecord component.- Returns:
- the value of the
requiredPermissionrecord component
-
resource
-
metadata
-