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 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()
-
-
-
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:
send
in interfaceSink
- Parameters:
from
- some implementations may ignore- Throws:
RuntimeException
-
-