public class DefaultAutoscaler extends java.lang.Object implements AutoScaler
AutoScaler
. Returns UnboundedSource.UnboundedReader.BACKLOG_UNKNOWN
as the default value.Constructor and Description |
---|
DefaultAutoscaler() |
Modifier and Type | Method and Description |
---|---|
long |
getTotalBacklogBytes()
Returns the size of the backlog of unread data in the underlying data source represented by all
splits of this source.
|
void |
start()
The
AutoScaler is started when the JmsIO.UnboundedJmsReader is started. |
void |
stop()
The
AutoScaler is stopped when the JmsIO.UnboundedJmsReader is closed. |
public void start()
AutoScaler
AutoScaler
is started when the JmsIO.UnboundedJmsReader
is started.start
in interface AutoScaler
public long getTotalBacklogBytes()
AutoScaler
getTotalBacklogBytes
in interface AutoScaler
public void stop()
AutoScaler
AutoScaler
is stopped when the JmsIO.UnboundedJmsReader
is closed.stop
in interface AutoScaler