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
Modifier and TypeClassDescriptionstatic final record
static enum
-
Constructor Summary
ConstructorDescriptionIndexingError
(Indexable message, String index, IndexingError.Error error) Creates an instance of aIndexingError
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexingError
create
(Indexable message, String index, IndexingError.Type errorType, String errorMessage) final boolean
Indicates whether some other object is "equal to" this one.error()
Returns the value of theerror
record component.final int
hashCode()
Returns a hash code value for this object.index()
Returns the value of theindex
record component.message()
Returns the value of themessage
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
IndexingError
Creates an instance of aIndexingError
record class.- Parameters:
message
- the value for themessage
record componentindex
- the value for theindex
record componenterror
- the value for theerror
record 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 themessage
record component.- Specified by:
message
in interfaceIndexingResult
- Returns:
- the value of the
message
record component
-
index
Returns the value of theindex
record component.- Specified by:
index
in interfaceIndexingResult
- Returns:
- the value of the
index
record component
-
error
Returns the value of theerror
record component.- Returns:
- the value of the
error
record component
-