|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.DefaultCamelContextNameStrategy
public class DefaultCamelContextNameStrategy
A default name strategy which auto assigns a name using a prefix-counter pattern.
| Constructor Summary | |
|---|---|
DefaultCamelContextNameStrategy()
|
|
DefaultCamelContextNameStrategy(String prefix)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCamelContextNameStrategy()
public DefaultCamelContextNameStrategy(String prefix)
| Method Detail |
|---|
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()
CamelContextNameStrategy
isFixedName in interface CamelContextNameStrategypublic static int getNextCounter()
public static void setCounter(int value)
value - the counter value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||