java.lang.Object
net.i2p.data.i2cp.I2CPMessageImpl
net.i2p.internal.PoisonI2CPMessage
All Implemented Interfaces:
I2CPMessage

public class PoisonI2CPMessageextends I2CPMessageImpl
For marking end-of-queues in a standard manner. Don't actually send it.
  • Field Details

    • MESSAGE_TYPE

      public static final int MESSAGE_TYPE
      I2CP type number reserved for the never-to-be-sent poison marker.
      See Also:
  • Constructor Details

    • PoisonI2CPMessage

      public PoisonI2CPMessage()
      Creates the marker used to terminate a queue.
  • Method Details

    • getType

      public int getType()
      Type of this message.
      Returns:
      the PoisonI2CPMessage type
    • hashCode

      public int hashCode()
      Hash code for this message.
      Overrides:
      hashCode in class Object
      Returns:
      whether h code is present
    • equals

      public boolean equals(Object object)
      Whether this message equals the given object.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      String representation of this message.
      Overrides:
      toString in class Object