Class Pinger

java.lang.Object
net.i2p.i2ptunnel.streamr.Pinger
All Implemented Interfaces:
Runnable, Source

public class Pinger extends Object implements Source, Runnable
Author:
welterde/zzz
  • Field Details

    • sink

      protected Sink sink
    • thread

      protected final Thread thread
    • running

      protected volatile boolean running
  • Constructor Details

    • Pinger

      public Pinger(I2PAppContext ctx, int fromPort)
      Parameters:
      fromPort - the I2CP from port
      Since:
      0.9.53 added ctx and fromPort params
  • Method Details

    • setSink

      public void setSink(Sink sink)
      Specified by:
      setSink in interface Source
    • start

      public void start()
      Specified by:
      start in interface Source
    • stop

      public void stop()
    • run

      public void run()
      Specified by:
      run in interface Runnable