Package org.apache.beam.sdk.io.jms
Class DefaultAutoscaler
- java.lang.Object
-
- org.apache.beam.sdk.io.jms.DefaultAutoscaler
-
- All Implemented Interfaces:
java.io.Serializable,AutoScaler
public class DefaultAutoscaler extends java.lang.Object implements AutoScaler
Default implementation ofAutoScaler. ReturnsUnboundedSource.UnboundedReader.BACKLOG_UNKNOWNas the default value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultAutoscaler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetTotalBacklogBytes()Returns 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.
-
-
-
Method Detail
-
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
-
-