Class ElasticsearchUpdateQueueItem

java.lang.Object
eu.dzhw.fdz.metadatamanagement.common.domain.AbstractRdcDomainObject
eu.dzhw.fdz.metadatamanagement.searchmanagement.domain.ElasticsearchUpdateQueueItem
All Implemented Interfaces:
Serializable

@CompoundIndex(def="{documentType: 1, documentId: 1, action: 1}",unique=true) @CompoundIndex(def="{updateStartedAt: 1, updateStartedBy: 1, createdDate: 1}") @CompoundIndex(def="{updateStartedAt: 1, updateStartedBy: 1, documentType: 1, createdDate: 1}",name="locked_items_per_type")
public class ElasticsearchUpdateQueueItem
extends AbstractRdcDomainObject
Elasticsearch indices are updated asynchronously by processing these queue items.
Author:
René Reitmann
See Also:
Serialized Form
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
      Constant Field Values
    • id

      private String id
    • documentType

      @NotNull private @NotNull eu.dzhw.fdz.metadatamanagement.searchmanagement.service.ElasticsearchType documentType
    • documentId

      @NotEmpty private @NotEmpty String documentId
    • updateStartedAt

      private LocalDateTime updateStartedAt
    • updateStartedBy

      private String updateStartedBy
    • action

      @NotNull private @NotNull ElasticsearchUpdateQueueAction action
  • Constructor Details

    • ElasticsearchUpdateQueueItem

      public ElasticsearchUpdateQueueItem​(String documentId, eu.dzhw.fdz.metadatamanagement.searchmanagement.service.ElasticsearchType documentType, ElasticsearchUpdateQueueAction action)
      Construct a queue item with the mandatory params.
      Parameters:
      documentId - The id of the document to update or delete
      documentType - The type (e.g. "variables")
      action - The action