Record Class ResourceUsageSnapshot
java.lang.Object
java.lang.Record
org.j7m.middleware.security.api.ResourceUsageSnapshot
- Record Components:
activeInvocations- current active invocation countexportedObjects- current exported object countcallbackExports- current callback export countinboundBytes- current request inbound payload bytesoutboundBytes- current response outbound payload bytes
public record ResourceUsageSnapshot(int activeInvocations, int exportedObjects, int callbackExports, int inboundBytes, int outboundBytes)
extends Record
Immutable runtime resource usage snapshot supplied to resource policies.
-
Constructor Summary
ConstructorsConstructorDescriptionResourceUsageSnapshot(int activeInvocations, int exportedObjects, int callbackExports, int inboundBytes, int outboundBytes) Creates a usage snapshot. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveInvocationsrecord component.intReturns the value of thecallbackExportsrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexportedObjectsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theinboundBytesrecord component.intReturns the value of theoutboundBytesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResourceUsageSnapshot
public ResourceUsageSnapshot(int activeInvocations, int exportedObjects, int callbackExports, int inboundBytes, int outboundBytes) Creates a usage 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. -
activeInvocations
public int activeInvocations()Returns the value of theactiveInvocationsrecord component.- Returns:
- the value of the
activeInvocationsrecord component
-
exportedObjects
public int exportedObjects()Returns the value of theexportedObjectsrecord component.- Returns:
- the value of the
exportedObjectsrecord component
-
callbackExports
public int callbackExports()Returns the value of thecallbackExportsrecord component.- Returns:
- the value of the
callbackExportsrecord component
-
inboundBytes
public int inboundBytes()Returns the value of theinboundBytesrecord component.- Returns:
- the value of the
inboundBytesrecord component
-
outboundBytes
public int outboundBytes()Returns the value of theoutboundBytesrecord component.- Returns:
- the value of the
outboundBytesrecord component
-