Class PortReuseHoldTimes


  • public final class PortReuseHoldTimes
    extends Object
    The minimum time (in seconds) that will pass before a port that was used by a closed pinhole can be recycled for use by another pinhole. All hold times must be minimum 1 second.
    • Constructor Detail

      • PortReuseHoldTimes

        public PortReuseHoldTimes()
    • Method Detail

      • tcp

        public Integer tcp()
        Get the tcp property: Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused. Default for TCP is 2 minutes.
        Returns:
        the tcp value.
      • withTcp

        public PortReuseHoldTimes withTcp​(Integer tcp)
        Set the tcp property: Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused. Default for TCP is 2 minutes.
        Parameters:
        tcp - the tcp value to set.
        Returns:
        the PortReuseHoldTimes object itself.
      • udp

        public Integer udp()
        Get the udp property: Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused. Default for UDP is 1 minute.
        Returns:
        the udp value.
      • withUdp

        public PortReuseHoldTimes withUdp​(Integer udp)
        Set the udp property: Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused. Default for UDP is 1 minute.
        Parameters:
        udp - the udp value to set.
        Returns:
        the PortReuseHoldTimes object itself.
      • validate

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