Package org.graylog2.indexer.messages
Interface SerializationContext
- All Known Implementing Classes:
DefaultSerializationContext
public interface SerializationContext
Context required to serialize an indexable object into a form required by the indexer. Typically, that is JSON.
A context contains the object mapper that is doing the heavy lifting of the serialization.
If more context is required to serialize certain Indexable objects, this class should be
extended, to provide that. This way, changes to the Indexable can be kept minimal.
-
Method Summary
Modifier and TypeMethodDescriptioncom.codahale.metrics.Metercom.fasterxml.jackson.databind.ObjectMapperstatic SerializationContextof(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.codahale.metrics.Meter invalidTimestampMeter)
-
Method Details
-
of
static SerializationContext of(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.codahale.metrics.Meter invalidTimestampMeter) -
objectMapper
@Nonnull com.fasterxml.jackson.databind.ObjectMapper objectMapper() -
invalidTimestampMeter
@Nonnull com.codahale.metrics.Meter invalidTimestampMeter()
-