Interface StreamCallbacks

    • Method Detail

      • streamLatencyPressure

        void streamLatencyPressure​(long duration)
                            throws ProducerException
        Reports the stream latency pressure.
        Parameters:
        duration - The buffer duration in 100ns.
        Throws:
        ProducerException
      • streamConnectionStale

        void streamConnectionStale​(long lastAckDuration)
                            throws ProducerException
        Reports the stream staleness when the data is read and sent but no ACKs are received.
        Parameters:
        lastAckDuration - The duration of time window when the last "buffering" ACK is received in 100ns.
        Throws:
        ProducerException
      • droppedFrameReport

        void droppedFrameReport​(long frameTimecode)
                         throws ProducerException
        Reports a dropped frame for the stream.
        Parameters:
        frameTimecode - Frame time code of the dropped frame.
        Throws:
        ProducerException
      • droppedFragmentReport

        void droppedFragmentReport​(long fragmentTimecode)
                            throws ProducerException
        Reports a dropped fragment for the stream.
        Parameters:
        fragmentTimecode - Fragment time code of the dropped fragment.
        Throws:
        ProducerException
      • streamErrorReport

        void streamErrorReport​(long uploadHandle,
                               long fragmentTimecode,
                               long statusCode)
                        throws ProducerException
        Reports an error for the stream. The client should terminate the connection as the inlet host would have/has already terminated the connection.
        Parameters:
        uploadHandle - The client stream upload handle.
        fragmentTimecode - Fragment time code of the errored fragment.
        statusCode - Status code of the failure.
        Throws:
        ProducerException
      • streamDataAvailable

        void streamDataAvailable​(long uploadHandle,
                                 long duration,
                                 long availableSize)
                          throws ProducerException
        New data is available for the stream.
        Parameters:
        uploadHandle - The client stream upload handle.
        duration - The duration of content available in the stream.
        availableSize - The size of the content available in the stream.
        Throws:
        ProducerException
      • streamClosed

        void streamClosed​(long uploadHandle)
                   throws ProducerException
        Stream has been closed.
        Parameters:
        uploadHandle - The client stream upload handle.
        Throws:
        ProducerException
      • bufferDurationOverflowPressure

        void bufferDurationOverflowPressure​(long remainDuration)
                                     throws ProducerException
        Stream temporal buffer pressure.
        Parameters:
        remainDuration - Remaining duration in the buffer in hundreds of nanos.
        Throws:
        ProducerException