Package org.graylog2.indexer.messages
Record Class IndexingError
java.lang.Object
java.lang.Record
org.graylog2.indexer.messages.IndexingError
- All Implemented Interfaces:
IndexingResult
public record IndexingError(Indexable message, String index, IndexingError.Error error)
extends Record
implements IndexingResult
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionIndexingError(Indexable message, String index, IndexingError.Error error) Creates an instance of aIndexingErrorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexingErrorcreate(Indexable message, String index, IndexingError.Type errorType, String errorMessage) final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.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
-
IndexingError
Creates an instance of aIndexingErrorrecord class.- Parameters:
message- the value for themessagerecord componentindex- the value for theindexrecord componenterror- the value for theerrorrecord component
-
-
Method Details
-
create
public static IndexingError create(Indexable message, String index, IndexingError.Type errorType, String errorMessage) -
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
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-