Interface CountReaders

All Known Subinterfaces:
CountRW, RWLogger
All Known Implementing Classes:
AbstractRWLogger, CSVLogger, GrpcLogger, PrometheusLogger, Sl4jLogger, SystemLogger

public sealed interface CountReaders permits CountRW
Interface for tracking the count of active readers in the benchmarking system. This sealed interface is part of the reader tracking mechanism in SBK. It provides methods to increment and decrement the count of active readers during benchmark operations.

This interface is sealed and only permits implementation by CountRW.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Decrements the count of active readers.
    void
    Increments the count of active readers.
  • Method Details

    • incrementReaders

      void incrementReaders()
      Increments the count of active readers. This method should be called when a new reader becomes active.
    • decrementReaders

      void decrementReaders()
      Decrements the count of active readers. This method should be called when a reader completes its operation or becomes inactive.