Package org.apache.camel.test
Class AvailablePortFinderPropertiesFunction
- java.lang.Object
-
- org.apache.camel.test.AvailablePortFinderPropertiesFunction
-
- All Implemented Interfaces:
org.apache.camel.spi.PropertiesFunction
@Deprecated public class AvailablePortFinderPropertiesFunction extends Object implements org.apache.camel.spi.PropertiesFunction
Deprecated.APropertiesFunction
that reserves network ports and place them in a cache for reuse. The first time the function is invoked for a given name, an unused network port is determined and cached in an hash map with the given name as key so each time this function is invoked for the same name, the previously discovered port will be returned. This is useful for testing purpose where you can write a route like:from("undertow:http://0.0.0.0:{{available-port:server-port}}") .to("mock:result");
ProducerTemplate
like:template.sendBody("undertow:http://0.0.0.0:{{available-port:server-port}}", "the body");
- See Also:
AvailablePortFinder
-
-
Constructor Summary
Constructors Constructor Description AvailablePortFinderPropertiesFunction()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
apply(String remainder)
Deprecated.String
getName()
Deprecated.
-