Package org.apache.beam.sdk.io.jms
Class DefaultAutoscaler
java.lang.Object
org.apache.beam.sdk.io.jms.DefaultAutoscaler
- All Implemented Interfaces:
Serializable
,AutoScaler
Default implementation of
AutoScaler
. Returns UnboundedSource.UnboundedReader.BACKLOG_UNKNOWN
as the default value.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the size of the backlog of unread data in the underlying data source represented by all splits of this source.void
start()
TheAutoScaler
is started when theJmsIO.UnboundedJmsReader
is started.void
stop()
TheAutoScaler
is stopped when theJmsIO.UnboundedJmsReader
is closed.
-
Constructor Details
-
DefaultAutoscaler
public DefaultAutoscaler()
-
-
Method Details
-
start
public void start()Description copied from interface:AutoScaler
TheAutoScaler
is started when theJmsIO.UnboundedJmsReader
is started.- Specified by:
start
in interfaceAutoScaler
-
getTotalBacklogBytes
public long getTotalBacklogBytes()Description copied from interface:AutoScaler
Returns the size of the backlog of unread data in the underlying data source represented by all splits of this source.- Specified by:
getTotalBacklogBytes
in interfaceAutoScaler
-
stop
public void stop()Description copied from interface:AutoScaler
TheAutoScaler
is stopped when theJmsIO.UnboundedJmsReader
is closed.- Specified by:
stop
in interfaceAutoScaler
-