Package io.lettuce.core.dynamic.batch
Interface BatchExecutor
-
public interface BatchExecutor
Batch executor interface to enforce command queue flushing usingBatchSize
.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
flush()
Flush the command queue resulting in the queued commands being executed.
-
-
-
Method Detail
-
flush
void flush() throws BatchException
Flush the command queue resulting in the queued commands being executed.- Throws:
BatchException
- if at least one command failed.
-
-