Package net.i2p.i2ptunnel.socks
Class MultiSink<S extends Sink>
java.lang.Object
net.i2p.i2ptunnel.socks.MultiSink<S>
public class MultiSink<S extends Sink> extends Object implements Source, Sink
Sends to one of many Sinks
- Author:
- zzz modded from streamr/MultiSource
-
Constructor Summary
Constructors Constructor Description MultiSink(Map<Destination,S> cache)
-
Method Summary
Modifier and Type Method Description void
send(Destination from, byte[] data)
May throw RuntimeException from underlying sinksvoid
setSink(Sink sink)
Don't use this - put sinks in the cachevoid
start()