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 TypeMethodDescriptionlongReturns the size of the backlog of unread data in the underlying data source represented by all splits of this source.voidstart()TheAutoScaleris started when theJmsIO.UnboundedJmsReaderis started.voidstop()TheAutoScaleris stopped when theJmsIO.UnboundedJmsReaderis closed.
-
Constructor Details
-
DefaultAutoscaler
public DefaultAutoscaler()
-
-
Method Details
-
start
public void start()Description copied from interface:AutoScalerTheAutoScaleris started when theJmsIO.UnboundedJmsReaderis started.- Specified by:
startin interfaceAutoScaler
-
getTotalBacklogBytes
public long getTotalBacklogBytes()Description copied from interface:AutoScalerReturns the size of the backlog of unread data in the underlying data source represented by all splits of this source.- Specified by:
getTotalBacklogBytesin interfaceAutoScaler
-
stop
public void stop()Description copied from interface:AutoScalerTheAutoScaleris stopped when theJmsIO.UnboundedJmsReaderis closed.- Specified by:
stopin interfaceAutoScaler
-