Class ElasticsearchReindex.ErrorLoggingBulkListener

  • All Implemented Interfaces:
    co.elastic.clients.elasticsearch._helpers.bulk.BulkListener<Void>
    Enclosing class:
    ElasticsearchReindex

    protected static class ElasticsearchReindex.ErrorLoggingBulkListener
    extends Object
    implements co.elastic.clients.elasticsearch._helpers.bulk.BulkListener<Void>
    • Constructor Detail

      • ErrorLoggingBulkListener

        protected ErrorLoggingBulkListener()
    • Method Detail

      • beforeBulk

        public void beforeBulk​(long executionId,
                               co.elastic.clients.elasticsearch.core.BulkRequest request,
                               List<Void> contexts)
        Specified by:
        beforeBulk in interface co.elastic.clients.elasticsearch._helpers.bulk.BulkListener<Void>
      • afterBulk

        public void afterBulk​(long executionId,
                              co.elastic.clients.elasticsearch.core.BulkRequest request,
                              List<Void> contexts,
                              co.elastic.clients.elasticsearch.core.BulkResponse response)
        Specified by:
        afterBulk in interface co.elastic.clients.elasticsearch._helpers.bulk.BulkListener<Void>
      • afterBulk

        public void afterBulk​(long executionId,
                              co.elastic.clients.elasticsearch.core.BulkRequest request,
                              List<Void> contexts,
                              Throwable failure)
        Specified by:
        afterBulk in interface co.elastic.clients.elasticsearch._helpers.bulk.BulkListener<Void>