Module org.elasticsearch.xcore
Record Class DataStreamLifecycleFeatureSetUsage.GlobalRetentionStats
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.core.datastreams.DataStreamLifecycleFeatureSetUsage.GlobalRetentionStats
- All Implemented Interfaces:
Writeable
- Enclosing class:
DataStreamLifecycleFeatureSetUsage
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionGlobalRetentionStats(long dataStreamCount, long retention) Creates an instance of aGlobalRetentionStatsrecord class.GlobalRetentionStats(long dataStreamCount, org.elasticsearch.core.TimeValue retention) -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedataStreamCountrecord component.final booleanIndicates whether some other object is "equal to" this one.getGlobalRetentionStats(DataStreamGlobalRetention globalRetention, long dataStreamsWithDefaultRetention, long dataStreamsWithMaxRetention) final inthashCode()Returns a hash code value for this object.longReturns the value of theretentionrecord component.final StringtoString()Returns a string representation of this record class.voidwriteTo(StreamOutput out)
-
Constructor Details
-
GlobalRetentionStats
public GlobalRetentionStats(long dataStreamCount, org.elasticsearch.core.TimeValue retention) -
GlobalRetentionStats
- Throws:
IOException
-
GlobalRetentionStats
public GlobalRetentionStats(long dataStreamCount, long retention) Creates an instance of aGlobalRetentionStatsrecord class.- Parameters:
dataStreamCount- the value for thedataStreamCountrecord componentretention- the value for theretentionrecord component
-
-
Method Details
-
getGlobalRetentionStats
public static Map<String,DataStreamLifecycleFeatureSetUsage.GlobalRetentionStats> getGlobalRetentionStats(DataStreamGlobalRetention globalRetention, long dataStreamsWithDefaultRetention, long dataStreamsWithMaxRetention) -
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
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. All components in this record class are compared with '=='. -
dataStreamCount
public long dataStreamCount()Returns the value of thedataStreamCountrecord component.- Returns:
- the value of the
dataStreamCountrecord component
-
retention
public long retention()Returns the value of theretentionrecord component.- Returns:
- the value of the
retentionrecord component
-