Class MultiSink<S extends Sink>

  • All Implemented Interfaces:
    Sink, Source

    public class MultiSink<S extends Sink>
    extends Object
    implements Source, Sink
    Sends to one of many Sinks
    Author:
    zzz modded from streamr/MultiSource
    • Method Detail

      • setSink

        public void setSink​(Sink sink)
        Don't use this - put sinks in the cache
        Specified by:
        setSink in interface Source
      • start

        public void start()
        Specified by:
        start in interface Source
      • send

        public void send​(Destination from,
                         byte[] data)
        May throw RuntimeException from underlying sinks
        Specified by:
        send in interface Sink
        Parameters:
        from - some implementations may ignore
        Throws:
        RuntimeException