Interface AutoScaler

  • All Known Implementing Classes:
    NoopAutoScaler, PollerAutoScaler

    public interface AutoScaler
    Poller autoscaler interface for acquiring and releasing locks. In order to control number of concurrent operations.
    • Method Detail

      • start

        void start()
      • stop

        void stop()
      • acquire

        void acquire()
              throws java.lang.InterruptedException
        Reduce the number of available locks. Intended to be blocking operation until lock is acquired.
        Throws:
        java.lang.InterruptedException
      • release

        void release()
        Releases lock into the autoscaler pool. Release should be always called in same process, failing to do so is considered a usage error.
      • increaseNoopPollCount

        void increaseNoopPollCount()
      • increaseActionablePollCount

        void increaseActionablePollCount()