Package com.vaadin.flow.testutil.net
Interface EphemeralPortRangeDetector
-
- All Known Implementing Classes:
FixedIANAPortRange,LinuxEphemeralPortRangeDetector
public interface EphemeralPortRangeDetectorIdentifies the ephemeral port range for a given environment.When trying to locate a "random" free port, it is important to not allocate within the ephemeral range, since these can be allocated at any time, and the probability of race conditions increases as the number of recently used ports increases, something which is quite common when running the webdriver tests.
Derived from SeleniumHQ / selenium
For internal use only. May be renamed or removed in a future release.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetHighestEphemeralPort()Returns the last port that could be searched for free portsintgetLowestEphemeralPort()Returns the first port in the ephemeral range
-