Module lettuce.core

Interface BatchExecutor


public interface BatchExecutor
Batch executor interface to enforce command queue flushing using BatchSize.

Commands remain in a batch queue until the batch size is reached or the queue is flushed. If the batch size is not reached, commands remain not executed.

Commands that fail during the batch cause a BatchException while non-failed commands remain executed successfully.

Since:
5.0
Author:
Mark Paluch
See Also:
BatchSize
  • Method Summary

    Modifier and Type Method Description
    void flush()
    Flush the command queue resulting in the queued commands being executed.
  • Method Details

    • flush

      void flush() throws BatchException
      Flush the command queue resulting in the queued commands being executed.
      Throws:
      BatchException - if at least one command failed.