Package org.graylog2.indexer.messages
Record Class DefaultSerializationContext
java.lang.Object
java.lang.Record
org.graylog2.indexer.messages.DefaultSerializationContext
- All Implemented Interfaces:
SerializationContext
public record DefaultSerializationContext(@Nonnull com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Nonnull com.codahale.metrics.Meter invalidTimestampMeter)
extends Record
implements SerializationContext
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSerializationContext(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.codahale.metrics.Meter invalidTimestampMeter) Creates an instance of aDefaultSerializationContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.codahale.metrics.MeterReturns the value of theinvalidTimestampMeterrecord component.com.fasterxml.jackson.databind.ObjectMapperReturns the value of theobjectMapperrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DefaultSerializationContext
public DefaultSerializationContext(@Nonnull com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Nonnull com.codahale.metrics.Meter invalidTimestampMeter) Creates an instance of aDefaultSerializationContextrecord class.- Parameters:
objectMapper- the value for theobjectMapperrecord componentinvalidTimestampMeter- the value for theinvalidTimestampMeterrecord 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 withObjects::equals(Object,Object). -
objectMapper
@Nonnull public com.fasterxml.jackson.databind.ObjectMapper objectMapper()Returns the value of theobjectMapperrecord component.- Specified by:
objectMapperin interfaceSerializationContext- Returns:
- the value of the
objectMapperrecord component
-
invalidTimestampMeter
@Nonnull public com.codahale.metrics.Meter invalidTimestampMeter()Returns the value of theinvalidTimestampMeterrecord component.- Specified by:
invalidTimestampMeterin interfaceSerializationContext- Returns:
- the value of the
invalidTimestampMeterrecord component
-