Package org.apache.camel.impl.engine
Class DefaultNodeIdFactory
java.lang.Object
org.apache.camel.impl.engine.DefaultNodeIdFactory
- All Implemented Interfaces:
org.apache.camel.spi.NodeIdFactory
Default id factory.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateId
(org.apache.camel.NamedNode definition) protected static AtomicInteger
getNodeCounter
(String key) Returns the counter for the given node key, lazily creating one if necessaryprotected static void
Helper method for test purposes that allows tests to start clean (made protected to ensure that it is not called accidentally)
-
Field Details
-
NODE_COUNTERS
-
-
Constructor Details
-
DefaultNodeIdFactory
public DefaultNodeIdFactory()
-
-
Method Details
-
createId
- Specified by:
createId
in interfaceorg.apache.camel.spi.NodeIdFactory
-
getNodeCounter
Returns the counter for the given node key, lazily creating one if necessary -
resetAllCounters
protected static void resetAllCounters()Helper method for test purposes that allows tests to start clean (made protected to ensure that it is not called accidentally)
-