Package net.i2p.i2ptunnel.socks
Class MultiSink<S extends Sink>
- java.lang.Object
-
- net.i2p.i2ptunnel.socks.MultiSink<S>
-
-
Constructor Summary
Constructors Constructor Description MultiSink(Map<Destination,S> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsend(Destination from, byte[] data)May throw RuntimeException from underlying sinksvoidsetSink(Sink sink)Don't use this - put sinks in the cachevoidstart()
-
-
-
Constructor Detail
-
MultiSink
public MultiSink(Map<Destination,S> cache)
-
-
Method Detail
-
setSink
public void setSink(Sink sink)
Don't use this - put sinks in the cache
-
send
public void send(Destination from, byte[] data)
May throw RuntimeException from underlying sinks- Specified by:
sendin interfaceSink- Parameters:
from- some implementations may ignore- Throws:
RuntimeException
-
-