Class NopeOptimizationListener

java.lang.Object
io.github.bucket4j.distributed.proxy.optimization.NopeOptimizationListener
All Implemented Interfaces:
OptimizationListener

public class NopeOptimizationListener extends Object implements OptimizationListener
  • Field Details

  • Constructor Details

    • NopeOptimizationListener

      public NopeOptimizationListener()
  • Method Details

    • incrementMergeCount

      public void incrementMergeCount(int count)
      Description copied from interface: OptimizationListener
      This method is invoked every time when several independent requests to the same bucket combined into a single one.
      Specified by:
      incrementMergeCount in interface OptimizationListener
      Parameters:
      count - number of requests that were merged
    • incrementSkipCount

      public void incrementSkipCount(int count)
      Description copied from interface: OptimizationListener
      This method is invoked every time when several requests were not propagated to external storage because optimization had decided that they can be served locally.
      Specified by:
      incrementSkipCount in interface OptimizationListener
      Parameters:
      count - number of requests that were served locally without synchronization with external storage