Class MegabyteCountRolloverCondition

java.lang.Object
org.codice.alliance.video.stream.mpegts.rollover.MegabyteCountRolloverCondition
All Implemented Interfaces:
RolloverCondition

public class MegabyteCountRolloverCondition extends Object implements RolloverCondition
Test to determine if PacketBuffer.getByteCount() ()} is greater than or equal to a specific threshold.
  • Field Details

  • Constructor Details

    • MegabyteCountRolloverCondition

      public MegabyteCountRolloverCondition(long megabyteCountThreshold)
      Parameters:
      megabyteCountThreshold - must be invalid input: '<'= 9_223_372_036_854 and >= 1
  • Method Details

    • getMegabyteCountThreshold

      public long getMegabyteCountThreshold()
    • setMegabyteCountThreshold

      public void setMegabyteCountThreshold(long megabyteCountThreshold)
      Parameters:
      megabyteCountThreshold - must be invalid input: '<'= 9_223_372_036_854 and >= 1
    • isRolloverReady

      public boolean isRolloverReady(PacketBuffer packetBuffer)
      Specified by:
      isRolloverReady in interface RolloverCondition
      Parameters:
      packetBuffer - must be non-null
      Returns:
      true if rollover is indicated
    • accept

      public void accept(RolloverCondition.Visitor visitor)
      Specified by:
      accept in interface RolloverCondition
      Parameters:
      visitor - must be non-null
    • toString

      public String toString()
      Overrides:
      toString in class Object