java.lang.Object
org.codice.alliance.video.stream.mpegts.Context

public class Context extends Object
This class supplies data used by different parts of the stream processor.
  • Constructor Details

    • Context

      public Context(UdpStreamProcessor udpStreamProcessor)
      Parameters:
      udpStreamProcessor - must be non-null
  • Method Details

    • getUdpStreamProcessor

      public UdpStreamProcessor getUdpStreamProcessor()
    • getParentMetacard

      public Optional<ddf.catalog.data.Metacard> 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

      public <T> T modifyParentOrChild(Function<AtomicBoolean,T> function)
      Callers that wish to modify the parent or child metacards should perform their actions with the Function passed into this method. The function will be passed an AtomicBoolean that 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()