public class ConsulRegistry extends Object implements org.apache.camel.spi.Registry
| Modifier and Type | Class and Description |
|---|---|
static class |
ConsulRegistry.Builder |
| Constructor and Description |
|---|
ConsulRegistry(String hostname) |
ConsulRegistry(String hostname,
int port) |
| Modifier and Type | Method and Description |
|---|---|
<T> Set<T> |
findByType(Class<T> type) |
<T> Map<String,T> |
findByTypeWithName(Class<T> type) |
String |
getHostname() |
int |
getPort() |
Object |
lookup(String name) |
<T> T |
lookup(String name,
Class<T> type) |
Object |
lookupByName(String key) |
<T> T |
lookupByNameAndType(String name,
Class<T> type) |
<T> Map<String,T> |
lookupByType(Class<T> type) |
void |
put(String key,
Object object) |
void |
remove(String key) |
void |
setHostname(String hostname) |
void |
setPort(int port) |
public ConsulRegistry(String hostname)
public ConsulRegistry(String hostname, int port)
public Object lookupByName(String key)
lookupByName in interface org.apache.camel.spi.Registrypublic <T> T lookupByNameAndType(String name, Class<T> type)
lookupByNameAndType in interface org.apache.camel.spi.Registrypublic <T> Map<String,T> findByTypeWithName(Class<T> type)
findByTypeWithName in interface org.apache.camel.spi.Registrypublic <T> Set<T> findByType(Class<T> type)
findByType in interface org.apache.camel.spi.Registrypublic void remove(String key)
public String getHostname()
public void setHostname(String hostname)
public int getPort()
public void setPort(int port)
public Object lookup(String name)
lookup in interface org.apache.camel.spi.Registrypublic <T> T lookup(String name, Class<T> type)
lookup in interface org.apache.camel.spi.RegistryApache Camel