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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
acquire()
Reduce the number of available locks.void
increaseActionablePollCount()
void
increaseNoopPollCount()
void
release()
Releases lock into the autoscaler pool.void
start()
void
stop()
-
-
-
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()
-
-