Class MultiSource

  • All Implemented Interfaces:
    Sink, Source

    public class MultiSource
    extends Object
    implements Source, Sink
    Sends to many Sinks
    Author:
    welterde, zzz modded for I2PTunnel
    • Constructor Detail

      • MultiSource

        public MultiSource()
    • Method Detail

      • setSink

        public void setSink​(Sink sink)
        Specified by:
        setSink in interface Source
      • start

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

        public void stop()
      • send

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