Class ElasticUpdateProcessor

  • All Implemented Interfaces:
    io.ebeanservice.docstore.api.DocStoreUpdateProcessor

    public class ElasticUpdateProcessor
    extends Object
    implements io.ebeanservice.docstore.api.DocStoreUpdateProcessor
    ElasticSearch implementation of the DocStoreUpdateProcessor.
    • Method Detail

      • createTransaction

        public io.ebeanservice.docstore.api.DocStoreTransaction createTransaction​(int batchSize)
        Specified by:
        createTransaction in interface io.ebeanservice.docstore.api.DocStoreUpdateProcessor
      • commit

        public void commit​(io.ebeanservice.docstore.api.DocStoreTransaction docStoreTxn)
        Specified by:
        commit in interface io.ebeanservice.docstore.api.DocStoreUpdateProcessor
      • onStartup

        public void onStartup()
        Initialise communication with the queue.
      • createQueryUpdate

        public <T> io.ebeanservice.docstore.api.DocStoreQueryUpdate<T> createQueryUpdate​(io.ebean.plugin.BeanType<T> beanType,
                                                                                         int batchSize)
                                                                                  throws IOException
        Create an 'update by query' processor.
        Specified by:
        createQueryUpdate in interface io.ebeanservice.docstore.api.DocStoreUpdateProcessor
        Throws:
        IOException
      • process

        public void process​(io.ebeanservice.docstore.api.DocStoreUpdates updates,
                            int batchSize)
        Process the post-commit updates that have come from the Ebean transaction manager.
        Specified by:
        process in interface io.ebeanservice.docstore.api.DocStoreUpdateProcessor