Interface CamelContextNameStrategy
public interface CamelContextNameStrategy
Strategy for assigning the name of a
CamelContext.
Camel uses the name strategy to determine the context's name, which appears in logs, management (JMX), and tooling. A
strategy may return a fixed name or compute a fresh one each time (for example using a counter to keep names unique
across multiple contexts in the same JVM); isFixedName() reports which. ManagementNameStrategy is
the related strategy for the JMX management name.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the nameGets the next calculated name, if this strategy is not using fixed names.booleanWhether the name will be fixed, or allow re-calculation such as by using an unique counter.
-
Method Details
-
getName
String getName()Gets the name TheisFixedName()determines if the name can be re-calculated such as when using a counter, or the name is always fixed.- Returns:
- the name.
-
getNextName
String getNextName()Gets the next calculated name, if this strategy is not using fixed names. TheisFixedName()determines if the name can be re-calculated such as when using a counter, or the name is always fixed.- Returns:
- the next name
-
isFixedName
boolean isFixedName()Whether the name will be fixed, or allow re-calculation such as by using an unique counter.- Returns:
- true for fixed names, false for names which can re-calculated
-