Class Anjay.CoapUdpTxParams

    • Constructor Summary

      Constructors 
      Constructor Description
      CoapUdpTxParams​(java.time.Duration ackTimeout, double ackRandomFactor, int maxRetransmit, int nstart)
      Constructor for transmission params object.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ackTimeout

        public final java.time.Duration ackTimeout
        RFC 7252: ACK_TIMEOUT
      • ackRandomFactor

        public final double ackRandomFactor
        RFC 7252: ACK_RANDOM_FACTOR
      • maxRetransmit

        public final int maxRetransmit
        RFC 7252: MAX_RETRANSMIT
      • nstart

        public final int nstart
        RFC 7252: NSTART
      • DEFAULT

        public static final Anjay.CoapUdpTxParams DEFAULT
        Default transmission params recommended by the CoAP specification (RFC 7252).
    • Constructor Detail

      • CoapUdpTxParams

        public CoapUdpTxParams​(java.time.Duration ackTimeout,
                               double ackRandomFactor,
                               int maxRetransmit,
                               int nstart)
        Constructor for transmission params object.
        Parameters:
        ackTimeout - RFC 7252: ACK_TIMEOUT. Must not be null.
        ackRandomFactor - RFC 7252: ACK_RANDOM_FACTOR
        maxRetransmit - RFC 7252: MAX_RETRANSMIT
        nstart - RFC 7252: NSTART