Record Class JournalEstimate
java.lang.Object
java.lang.Record
org.graylog.plugins.views.storage.migration.state.rest.JournalEstimate
public record JournalEstimate(long bytesPerMinute, long journalSize, long maxDowntimeMinutes)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionJournalEstimate(long bytesPerMinute, long journalSize, long maxDowntimeMinutes) Creates an instance of aJournalEstimaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebytesPerMinuterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thejournalSizerecord component.longReturns the value of themaxDowntimeMinutesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JournalEstimate
public JournalEstimate(long bytesPerMinute, long journalSize, long maxDowntimeMinutes) Creates an instance of aJournalEstimaterecord class.- Parameters:
bytesPerMinute- the value for thebytesPerMinuterecord componentjournalSize- the value for thejournalSizerecord componentmaxDowntimeMinutes- the value for themaxDowntimeMinutesrecord 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. All components in this record class are compared with '=='. -
bytesPerMinute
public long bytesPerMinute()Returns the value of thebytesPerMinuterecord component.- Returns:
- the value of the
bytesPerMinuterecord component
-
journalSize
public long journalSize()Returns the value of thejournalSizerecord component.- Returns:
- the value of the
journalSizerecord component
-
maxDowntimeMinutes
public long maxDowntimeMinutes()Returns the value of themaxDowntimeMinutesrecord component.- Returns:
- the value of the
maxDowntimeMinutesrecord component
-