public class DefaultCamelContextNameStrategy extends Object implements CamelContextNameStrategy
| Constructor and Description |
|---|
DefaultCamelContextNameStrategy() |
DefaultCamelContextNameStrategy(String prefix) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the name
The
CamelContextNameStrategy.isFixedName() determines if the name can be re-calculated such as when using a counter,
or the name is always fixed. |
static int |
getNextCounter() |
String |
getNextName()
Gets the next calculated name, if this strategy is not using fixed names.
|
boolean |
isFixedName()
Whether the name will be fixed, or allow re-calculation such as by using an unique counter.
|
static void |
setCounter(int value)
To reset the counter, should only be used for testing purposes.
|
public DefaultCamelContextNameStrategy()
public DefaultCamelContextNameStrategy(String prefix)
public String getName()
CamelContextNameStrategyCamelContextNameStrategy.isFixedName() determines if the name can be re-calculated such as when using a counter,
or the name is always fixed.getName in interface CamelContextNameStrategypublic String getNextName()
CamelContextNameStrategyCamelContextNameStrategy.isFixedName() determines if the name can be re-calculated such as when using a counter,
or the name is always fixed.getNextName in interface CamelContextNameStrategypublic boolean isFixedName()
CamelContextNameStrategyisFixedName in interface CamelContextNameStrategypublic static int getNextCounter()
public static void setCounter(int value)
value - the counter valueApache Camel