Class NoopAutoScaler
- java.lang.Object
-
- com.uber.cadence.internal.worker.autoscaler.NoopAutoScaler
-
- All Implemented Interfaces:
AutoScaler
public class NoopAutoScaler extends java.lang.Object implements AutoScaler
-
-
Constructor Summary
Constructors Constructor Description NoopAutoScaler()
-
Method Summary
All Methods Instance Methods Concrete 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
public void start()
- Specified by:
start
in interfaceAutoScaler
-
stop
public void stop()
- Specified by:
stop
in interfaceAutoScaler
-
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 interfaceAutoScaler
- 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 interfaceAutoScaler
-
increaseNoopPollCount
public void increaseNoopPollCount()
- Specified by:
increaseNoopPollCount
in interfaceAutoScaler
-
increaseActionablePollCount
public void increaseActionablePollCount()
- Specified by:
increaseActionablePollCount
in interfaceAutoScaler
-
-