Class RequestLeaseSetMessage

  • All Implemented Interfaces:
    I2CPMessage

    public class RequestLeaseSetMessage
    extends I2CPMessageImpl
    Defines the message a router sends to a client to request that a leaseset be created and signed. The reply is a CreateLeaseSetMessage.
    Author:
    jrandom
    • Constructor Detail

      • RequestLeaseSetMessage

        public RequestLeaseSetMessage()
    • Method Detail

      • getSessionId

        public SessionId getSessionId()
      • sessionId

        public SessionId sessionId()
        Return the SessionId for this message.
        Specified by:
        sessionId in interface I2CPMessage
        Overrides:
        sessionId in class I2CPMessageImpl
        Returns:
        null always. Extending classes with a SessionId must override.
        Since:
        0.9.21
      • setSessionId

        public void setSessionId​(SessionId id)
      • getEndpoints

        public int getEndpoints()
      • getRouter

        public Hash getRouter​(int endpoint)
      • getTunnelId

        public TunnelId getTunnelId​(int endpoint)
      • remoteEndpoint

        @Deprecated
        public void remoteEndpoint​(int endpoint)
        Deprecated.
        unused - presumably he meant remove?
      • addEndpoint

        public void addEndpoint​(Hash router,
                                TunnelId tunnel)
      • getEndDate

        public Date getEndDate()
      • setEndDate

        public void setEndDate​(Date end)
      • 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
        Returns:
        unique identifier for this type of message