Interface StreamListener

  • All Superinterfaces:
    EventListener

    public interface StreamListener
    extends EventListener
    A listener interface to be implemented by classes wishing to be notified about the availability of a new Stream.
    • Method Detail

      • streamAvailable

        void streamAvailable​(Stream stream)
        Receive notification about a new Stream. Caveat: you must not block on this call in order to read the stream, as, depending on the stream transport type, this may deadlock the reception thread.
        Parameters:
        stream - the new Stream
      • finished

        void finished()
        Receive notification about the end of the transmission, i.e. that there will be no more Streams.