java.lang.Object
net.i2p.client.impl.I2PSessionImpl.AvailabilityNotifier
net.i2p.client.impl.I2PSessionMuxedImpl.MuxedAvailabilityNotifier
All Implemented Interfaces:
Runnable
Enclosing class:
I2PSessionMuxedImpl

protected class I2PSessionMuxedImpl.MuxedAvailabilityNotifierextends I2PSessionImpl.AvailabilityNotifier
MuxedAvailabilityNotifier Extends AvailabilityNotifier.
  • Field Details

  • Constructor Details

    • MuxedAvailabilityNotifier

      public MuxedAvailabilityNotifier()
      Create a notifier with an empty pending queue.
  • Method Details

    • stopNotifying

      public void stopNotifying()
      Stop availability notifications.
      Overrides:
      stopNotifying in class I2PSessionImpl.AvailabilityNotifier
    • available

      public void available(long msgId, int size)
      Description copied from class: I2PSessionImpl.AvailabilityNotifier
      Notify that a message is available.
      Overrides:
      available in class I2PSessionImpl.AvailabilityNotifier
      Parameters:
      msgId - the message ID
      size - the unencrypted payload length in bytes
    • available

      public void available(long msgId, int size, int proto, int fromPort, int toPort)
      Notify that data is available.
      Parameters:
      msgId - the message id the data arrived for
      size - the size of the message in bytes
      proto - the I2CP protocol number the message was received on
      fromPort - the origin port at the remote router that sent it
      toPort - the destination port at this router it was sent to
    • run

      public void run()
      Notify the client thread of available messages, until stopNotifying() is called.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class I2PSessionImpl.AvailabilityNotifier