Record Class RolloverAction
java.lang.Object
java.lang.Record
org.graylog2.indexer.datastream.policy.actions.RolloverAction
- All Implemented Interfaces:
WrappedAction
public record RolloverAction(String minIndexAge, String minPrimaryShardSize)
extends Record
implements WrappedAction
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.graylog2.indexer.datastream.policy.actions.WrappedAction
WrappedAction.Type -
Constructor Summary
ConstructorsConstructorDescriptionRolloverAction(String minIndexAge, String minPrimaryShardSize) Creates an instance of aRolloverActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.Returns the value of theminIndexAgerecord component.Returns the value of theminPrimaryShardSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RolloverAction
Creates an instance of aRolloverActionrecord class.- Parameters:
minIndexAge- the value for theminIndexAgerecord componentminPrimaryShardSize- the value for theminPrimaryShardSizerecord component
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceWrappedAction
-
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 withObjects::equals(Object,Object). -
minIndexAge
Returns the value of theminIndexAgerecord component.- Returns:
- the value of the
minIndexAgerecord component
-
minPrimaryShardSize
Returns the value of theminPrimaryShardSizerecord component.- Returns:
- the value of the
minPrimaryShardSizerecord component
-