Class DefaultAutoscaler

java.lang.Object
org.apache.beam.sdk.io.jms.DefaultAutoscaler
All Implemented Interfaces:
Serializable, AutoScaler

public class DefaultAutoscaler extends Object implements AutoScaler
Default implementation of AutoScaler. Returns UnboundedSource.UnboundedReader.BACKLOG_UNKNOWN as the default value.
See Also:
  • Constructor Details

    • DefaultAutoscaler

      public DefaultAutoscaler()
  • Method Details

    • start

      public void start()
      Description copied from interface: AutoScaler
      The AutoScaler is started when the JmsIO.UnboundedJmsReader is started.
      Specified by:
      start in interface AutoScaler
    • 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 interface AutoScaler
    • stop

      public void stop()
      Description copied from interface: AutoScaler
      The AutoScaler is stopped when the JmsIO.UnboundedJmsReader is closed.
      Specified by:
      stop in interface AutoScaler