Record Class ResourceQuota
java.lang.Object
java.lang.Record
org.j7m.middleware.security.api.ResourceQuota
- Record Components:
maxConcurrentInvocations- maximum concurrent invocationsmaxInboundBytes- maximum inbound payload bytesmaxOutboundBytes- maximum outbound payload bytesmaxCallbackExports- maximum callback auto-exports
public record ResourceQuota(int maxConcurrentInvocations, int maxInboundBytes, int maxOutboundBytes, int maxCallbackExports)
extends Record
Immutable resource quota limits for one runtime policy evaluation.
Values less than or equal to zero mean no explicit quota for that dimension. The record is immutable and thread-safe.
-
Constructor Summary
ConstructorsConstructorDescriptionResourceQuota(int maxConcurrentInvocations, int maxInboundBytes, int maxOutboundBytes, int maxCallbackExports) Creates a quota snapshot. -
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 themaxCallbackExportsrecord component.intReturns the value of themaxConcurrentInvocationsrecord component.intReturns the value of themaxInboundBytesrecord component.intReturns the value of themaxOutboundBytesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResourceQuota
public ResourceQuota(int maxConcurrentInvocations, int maxInboundBytes, int maxOutboundBytes, int maxCallbackExports) Creates a quota snapshot.
-
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
maxConcurrentInvocations
public int maxConcurrentInvocations()Returns the value of themaxConcurrentInvocationsrecord component.- Returns:
- the value of the
maxConcurrentInvocationsrecord component
-
maxInboundBytes
public int maxInboundBytes()Returns the value of themaxInboundBytesrecord component.- Returns:
- the value of the
maxInboundBytesrecord component
-
maxOutboundBytes
public int maxOutboundBytes()Returns the value of themaxOutboundBytesrecord component.- Returns:
- the value of the
maxOutboundBytesrecord component
-
maxCallbackExports
public int maxCallbackExports()Returns the value of themaxCallbackExportsrecord component.- Returns:
- the value of the
maxCallbackExportsrecord component
-