Class MegabyteCountRolloverCondition
java.lang.Object
org.codice.alliance.video.stream.mpegts.rollover.MegabyteCountRolloverCondition
- All Implemented Interfaces:
RolloverCondition
Test to determine if
PacketBuffer.getByteCount() ()} is greater than or equal to a
specific threshold.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.codice.alliance.video.stream.mpegts.rollover.RolloverCondition
RolloverCondition.Visitor -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RolloverCondition.Visitor visitor) longbooleanisRolloverReady(PacketBuffer packetBuffer) voidsetMegabyteCountThreshold(long megabyteCountThreshold) toString()
-
Field Details
-
MIN_VALUE
public static final long MIN_VALUE- See Also:
-
MAX_VALUE
public static final long MAX_VALUE- See Also:
-
-
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
- Specified by:
isRolloverReadyin interfaceRolloverCondition- Parameters:
packetBuffer- must be non-null- Returns:
- true if rollover is indicated
-
accept
- Specified by:
acceptin interfaceRolloverCondition- Parameters:
visitor- must be non-null
-
toString
-