Interface Indexable

All Known Subinterfaces:
Event
All Known Implementing Classes:
EventImpl, Message

public interface Indexable
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Returns the id to address the document in Elasticsearch.
    org.joda.time.DateTime
     
    long
     
    org.joda.time.DateTime
     
    default boolean
    Guides the failure handling framework when deciding whether this particular message should be accepted for the further failure processing.
    toElasticSearchObject(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.codahale.metrics.Meter invalidTimestampMeter)
     
  • Method Details

    • getId

      Deprecated.
      Returns the id to address the document in Elasticsearch. Depending on the implementation this might return a UUID or ULID This method should only be used where backwards compatibility is needed. Newer code should use getMessageId() instead.
    • getMessageId

      String getMessageId()
      Returns the id to address the document in Elasticsearch. The message id is represented as a ULID
    • getSize

      long getSize()
    • getReceiveTime

      org.joda.time.DateTime getReceiveTime()
    • toElasticSearchObject

      Map<String,Object> toElasticSearchObject(com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Nonnull com.codahale.metrics.Meter invalidTimestampMeter)
    • getTimestamp

      org.joda.time.DateTime getTimestamp()
    • supportsFailureHandling

      default boolean supportsFailureHandling()
      Guides the failure handling framework when deciding whether this particular message should be accepted for the further failure processing. By default disabled for all messages.