Class ConsulRegistry
java.lang.Object
org.apache.camel.component.consul.ConsulRegistry
- All Implemented Interfaces:
org.apache.camel.spi.BeanRepository,org.apache.camel.spi.Registry
Apache Camel Plug-in for Consul Registry (Objects stored under kv/key as well as bookmarked under kv/[type]/key to
avoid iteration over types)
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidbindAsPrototype(String id, Class<?> type, Supplier<Object> bean) <T> Set<T>findByType(Class<T> type) findByTypeWithName(Class<T> type) intgetPort()lookupByName(String key) <T> TlookupByNameAndType(String name, Class<T> type) voidvoidvoidsetHostname(String hostname) voidsetPort(int port) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.spi.BeanRepository
findSingleByType, unwrapMethods inherited from interface org.apache.camel.spi.Registry
bind, unbind, wrap
-
Constructor Details
-
ConsulRegistry
-
ConsulRegistry
-
-
Method Details
-
lookupByName
- Specified by:
lookupByNamein interfaceorg.apache.camel.spi.BeanRepository
-
lookupByNameAndType
- Specified by:
lookupByNameAndTypein interfaceorg.apache.camel.spi.BeanRepository
-
findByTypeWithName
- Specified by:
findByTypeWithNamein interfaceorg.apache.camel.spi.BeanRepository
-
findByType
- Specified by:
findByTypein interfaceorg.apache.camel.spi.BeanRepository
-
bind
public void bind(String id, Class<?> type, Object bean) throws org.apache.camel.RuntimeCamelException - Specified by:
bindin interfaceorg.apache.camel.spi.Registry- Throws:
org.apache.camel.RuntimeCamelException
-
bind
public void bind(String id, Class<?> type, Supplier<Object> bean) throws org.apache.camel.RuntimeCamelException - Specified by:
bindin interfaceorg.apache.camel.spi.Registry- Throws:
org.apache.camel.RuntimeCamelException
-
bindAsPrototype
public void bindAsPrototype(String id, Class<?> type, Supplier<Object> bean) throws org.apache.camel.RuntimeCamelException - Specified by:
bindAsPrototypein interfaceorg.apache.camel.spi.Registry- Throws:
org.apache.camel.RuntimeCamelException
-
remove
-
put
-
getHostname
-
setHostname
-
getPort
public int getPort() -
setPort
public void setPort(int port)
-