Class SendMessageExpiresMessage

  • All Implemented Interfaces:
    I2CPMessage

    public class SendMessageExpiresMessage
    extends SendMessageMessage
    Same as SendMessageMessage, but with an expiration to be passed to the router As of 0.8.4, retrofitted to use DateAndFlags. Backwards compatible.
    Author:
    zzz
    • Constructor Detail

      • SendMessageExpiresMessage

        public SendMessageExpiresMessage()
      • SendMessageExpiresMessage

        public SendMessageExpiresMessage​(DateAndFlags options)
        Since:
        0.9.2
    • Method Detail

      • getExpiration

        public Date getExpiration()
        The Date object is created here, it is not cached. Use getExpirationTime() if you only need the long value.
      • getExpirationTime

        public long getExpirationTime()
        Use this instead of getExpiration().getTime()
        Since:
        0.8.4
      • setExpiration

        public void setExpiration​(Date d)
      • setExpiration

        public void setExpiration​(long d)
        Since:
        0.8.4
      • getFlags

        public int getFlags()
        Since:
        0.8.4
      • setFlags

        public void setFlags​(int f)
        Since:
        0.8.4
      • getType

        public int getType()
        Description copied from interface: I2CPMessage
        Return the unique identifier for this type of message, as specified in the network specification document under #ClientAccessLayerMessages
        Specified by:
        getType in interface I2CPMessage
        Overrides:
        getType in class SendMessageMessage
        Returns:
        unique identifier for this type of message