Class PinholeTimeouts


  • public final class PinholeTimeouts
    extends Object
    Expiry times of inactive NAPT pinholes, in seconds. All timers must be at least 1 second.
    • Constructor Detail

      • PinholeTimeouts

        public PinholeTimeouts()
    • Method Detail

      • tcp

        public Integer tcp()
        Get the tcp property: Pinhole timeout for TCP pinholes in seconds. Default for TCP is 2 hours 4 minutes per RFC 5382 section 5.
        Returns:
        the tcp value.
      • withTcp

        public PinholeTimeouts withTcp​(Integer tcp)
        Set the tcp property: Pinhole timeout for TCP pinholes in seconds. Default for TCP is 2 hours 4 minutes per RFC 5382 section 5.
        Parameters:
        tcp - the tcp value to set.
        Returns:
        the PinholeTimeouts object itself.
      • udp

        public Integer udp()
        Get the udp property: Pinhole timeout for UDP pinholes in seconds. Default for UDP is 5 minutes per RFC 4787 section 4.3.
        Returns:
        the udp value.
      • withUdp

        public PinholeTimeouts withUdp​(Integer udp)
        Set the udp property: Pinhole timeout for UDP pinholes in seconds. Default for UDP is 5 minutes per RFC 4787 section 4.3.
        Parameters:
        udp - the udp value to set.
        Returns:
        the PinholeTimeouts object itself.
      • icmp

        public Integer icmp()
        Get the icmp property: Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is 60 seconds per RFC 5508 section 3.2.
        Returns:
        the icmp value.
      • withIcmp

        public PinholeTimeouts withIcmp​(Integer icmp)
        Set the icmp property: Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is 60 seconds per RFC 5508 section 3.2.
        Parameters:
        icmp - the icmp value to set.
        Returns:
        the PinholeTimeouts object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.