Class PollerAutoScaler

  • All Implemented Interfaces:
    AutoScaler

    public class PollerAutoScaler
    extends java.lang.Object
    implements AutoScaler
    • Constructor Detail

    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface AutoScaler
      • stop

        public void stop()
        Specified by:
        stop in interface AutoScaler
      • resizePollers

        protected void resizePollers()
      • acquire

        public void acquire()
                     throws java.lang.InterruptedException
        Description copied from interface: AutoScaler
        Reduce the number of available locks. Intended to be blocking operation until lock is acquired.
        Specified by:
        acquire in interface AutoScaler
        Throws:
        java.lang.InterruptedException
      • release

        public void release()
        Description copied from interface: AutoScaler
        Releases lock into the autoscaler pool. Release should be always called in same process, failing to do so is considered a usage error.
        Specified by:
        release in interface AutoScaler
      • getSemaphoreSize

        protected int getSemaphoreSize()