| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
MultiSource.MSink
Sink wrapper for multi-source destinations.
|
| Constructor and Description |
|---|
MultiSource()
Creates a new multi-source distributor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(MultiSource.MSink ms) |
void |
remove(MultiSource.MSink ms) |
void |
send(Destination ignored_from,
int ignored_fromPort,
int ignored_toPort,
byte[] data)
May throw RuntimeException from underlying sinks
|
void |
setSink(Sink sink)
Sets the destination sink for all outgoing data.
|
void |
start()
Initializes the multi-source.
|
void |
stop()
Stops the multi-source and clears all registered sinks.
|
public void add(MultiSource.MSink ms)
public void remove(MultiSource.MSink ms)
public void send(Destination ignored_from, int ignored_fromPort, int ignored_toPort, byte[] data)
send in interface Sinkignored_from - some implementations may ignore, may be null in some implementationsignored_fromPort - I2CP source port, 0-65535ignored_toPort - I2CP destination port, 0-65535RuntimeExceptionpublic void setSink(Sink sink)
public void start()
public void stop()