Package org.graylog2.indexer.messages
Record Class IndexingSuccess
java.lang.Object
java.lang.Record
org.graylog2.indexer.messages.IndexingSuccess
- All Implemented Interfaces:
IndexingResult
public record IndexingSuccess(Indexable message, String index)
extends Record
implements IndexingResult
-
Constructor Summary
ConstructorsConstructorDescriptionIndexingSuccess(Indexable message, String index) Creates an instance of aIndexingSuccessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexingSuccessfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.index()Returns the value of theindexrecord component.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IndexingSuccess
Creates an instance of aIndexingSuccessrecord class.- Parameters:
message- the value for themessagerecord componentindex- the value for theindexrecord component
-
-
Method Details
-
create
-
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). -
message
Returns the value of themessagerecord component.- Specified by:
messagein interfaceIndexingResult- Returns:
- the value of the
messagerecord component
-
index
Returns the value of theindexrecord component.- Specified by:
indexin interfaceIndexingResult- Returns:
- the value of the
indexrecord component
-