public interface Optimization
BucketProxy and AsyncBucketProxy.
By default an interaction with BucketProxy and AsyncBucketProxy leads to immediately request to remote storage,
various implementations of Optimization interface can optimize this behavior.Optimizations,
OptimizationListener| Modifier and Type | Field and Description |
|---|---|
static Optimization |
NONE_OPTIMIZED |
| Modifier and Type | Method and Description |
|---|---|
AsyncCommandExecutor |
apply(AsyncCommandExecutor originalExecutor)
Decorates command executor in order to apply optimization strategy.
|
CommandExecutor |
apply(CommandExecutor originalExecutor)
Decorates command executor in order to apply optimization strategy.
|
Optimization |
withListener(OptimizationListener listener)
Specifies the listener for optimization events
|
static final Optimization NONE_OPTIMIZED
Optimization withListener(OptimizationListener listener)
listener - the listener for optimization eventsOptimization with configured listenerCommandExecutor apply(CommandExecutor originalExecutor)
originalExecutor - command executor that need to be optimizedAsyncCommandExecutor apply(AsyncCommandExecutor originalExecutor)
originalExecutor - command executor that need to be optimizedCopyright © 2024. All rights reserved.