Record Class ScaleActivity.ActiveComputationStream
java.lang.Object
java.lang.Record
org.nuxeo.ecm.core.bulk.introspection.ScaleActivity.ActiveComputationStream
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ScaleActivity
public static record ScaleActivity.ActiveComputationStream(String stream, int partitions, long lag, @Nullable Long end, @Nullable Duration latency)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionActiveComputationStream(String stream, int partitions, long lag, Long end, Duration latency) Creates an instance of aActiveComputationStreamrecord class. -
Method Summary
Modifier and TypeMethodDescriptionend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longlag()Returns the value of thelagrecord component.latency()Returns the value of thelatencyrecord component.intReturns the value of thepartitionsrecord component.stream()Returns the value of thestreamrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActiveComputationStream
public ActiveComputationStream(String stream, int partitions, long lag, @Nullable Long end, @Nullable Duration latency) Creates an instance of aActiveComputationStreamrecord class.- Parameters:
stream- the value for thestreamrecord componentpartitions- the value for thepartitionsrecord componentlag- the value for thelagrecord componentend- the value for theendrecord componentlatency- the value for thelatencyrecord component
-
-
Method Details
-
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. -
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. -
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 '=='. -
stream
Returns the value of thestreamrecord component.- Returns:
- the value of the
streamrecord component
-
partitions
public int partitions()Returns the value of thepartitionsrecord component.- Returns:
- the value of the
partitionsrecord component
-
lag
public long lag()Returns the value of thelagrecord component.- Returns:
- the value of the
lagrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
latency
Returns the value of thelatencyrecord component.- Returns:
- the value of the
latencyrecord component
-