Interface Optimization

    • Field Detail

    • Method Detail

      • withListener

        Optimization withListener​(OptimizationListener listener)
        Specifies the listener for optimization events
        Parameters:
        listener - the listener for optimization events
        Returns:
        the new instance of Optimization with configured listener
      • apply

        CommandExecutor apply​(CommandExecutor originalExecutor)
        Decorates command executor in order to apply optimization strategy.
        Parameters:
        originalExecutor - command executor that need to be optimized
        Returns:
        decorated command executor
      • apply

        AsyncCommandExecutor apply​(AsyncCommandExecutor originalExecutor)
        Decorates command executor in order to apply optimization strategy.
        Parameters:
        originalExecutor - command executor that need to be optimized
        Returns:
        decorated command executor