| Modifier and Type | Field and Description |
|---|---|
protected boolean |
running |
protected Sink |
sink |
protected Thread |
thread |
| Constructor and Description |
|---|
Pinger(I2PAppContext ctx,
int fromPort) |
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Main run loop that periodically sends subscribe messages.
|
void |
setSink(Sink sink)
Sets the destination sink for ping messages.
|
void |
start()
Starts the pinger thread to send periodic subscribe messages.
|
void |
stop()
Stops the pinger thread and sends an unsubscribe message.
|
protected volatile boolean running
protected Sink sink
protected final Thread thread
public Pinger(I2PAppContext ctx, int fromPort)
fromPort - the I2CP from portpublic void run()
public void setSink(Sink sink)
public void start()
public void stop()