Class Context
java.lang.Object
org.codice.alliance.video.stream.mpegts.Context
This class supplies data used by different parts of the stream processor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.codice.alliance.libs.klv.GeometryOperator.ContextintintOptional<ddf.catalog.data.Metacard> <T> TmodifyParentOrChild(Function<AtomicBoolean, T> function) Callers that wish to modify the parent or child metacards should perform their actions with theFunctionpassed into this method.voidvoidvoidsetParentMetacard(ddf.catalog.data.Metacard parentMetacard)
-
Constructor Details
-
Context
- Parameters:
udpStreamProcessor- must be non-null
-
-
Method Details
-
getUdpStreamProcessor
-
getParentMetacard
-
setParentMetacard
public void setParentMetacard(ddf.catalog.data.Metacard parentMetacard) - Parameters:
parentMetacard- must be non-null
-
getGeometryOperatorContext
public org.codice.alliance.libs.klv.GeometryOperator.Context getGeometryOperatorContext() -
modifyParentOrChild
Callers that wish to modify the parent or child metacards should perform their actions with theFunctionpassed into this method. The function will be passed anAtomicBooleanthat is TRUE if the parent metacard is in sync with the child metacards. Callers should not use the AtomicBoolean outside the context of this method call. Callers may modify the AtomicBoolean within the context of this method call.- Type Parameters:
T- the return type of this method and the Function- Parameters:
function- must be non-null- Returns:
- the return value of the Function
-
getNextRecordingCount
public int getNextRecordingCount() -
resetRecordingCount
public void resetRecordingCount() -
getNextSegmentCount
public int getNextSegmentCount() -
resetSegmentCount
public void resetSegmentCount()
-