public final class ConsulCoordinatesProducer
extends org.apache.camel.support.HeaderSelectorProducer
| Constructor and Description |
|---|
ConsulCoordinatesProducer(ConsulEndpoint endpoint,
ConsulConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected com.orbitz.consul.option.QueryOptions |
buildQueryOptions(org.apache.camel.Message message,
ConsulConfiguration conf) |
protected void |
datacenters(org.apache.camel.Message message) |
protected C |
getClient() |
protected ConsulConfiguration |
getConfiguration() |
protected <D> D |
getMandatoryHeader(org.apache.camel.Message message,
String header,
Class<D> type) |
protected <D> D |
getMandatoryHeader(org.apache.camel.Message message,
String header,
D defaultValue,
Class<D> type) |
protected void |
nodes(org.apache.camel.Message message) |
protected <T> void |
processConsulResponse(org.apache.camel.Message message,
com.orbitz.consul.model.ConsulResponse<T> response) |
protected void |
setBodyAndResult(org.apache.camel.Message message,
Object body) |
protected void |
setBodyAndResult(org.apache.camel.Message message,
Object body,
boolean result) |
protected org.apache.camel.Processor |
wrap(Function<C,Object> supplier) |
doBuild, getCamelContext, process, processResult, setCamelContextcreateExchange, doStart, doStop, getEndpoint, isSingleton, toStringbuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic ConsulCoordinatesProducer(ConsulEndpoint endpoint, ConsulConfiguration configuration)
protected void datacenters(org.apache.camel.Message message)
throws Exception
Exceptionprotected ConsulConfiguration getConfiguration()
protected <D> D getMandatoryHeader(org.apache.camel.Message message,
String header,
Class<D> type)
throws org.apache.camel.NoSuchHeaderException
org.apache.camel.NoSuchHeaderExceptionprotected <D> D getMandatoryHeader(org.apache.camel.Message message,
String header,
D defaultValue,
Class<D> type)
throws org.apache.camel.NoSuchHeaderException
org.apache.camel.NoSuchHeaderExceptionprotected com.orbitz.consul.option.QueryOptions buildQueryOptions(org.apache.camel.Message message,
ConsulConfiguration conf)
protected <T> void processConsulResponse(org.apache.camel.Message message,
com.orbitz.consul.model.ConsulResponse<T> response)
protected void setBodyAndResult(org.apache.camel.Message message,
Object body)
protected void setBodyAndResult(org.apache.camel.Message message,
Object body,
boolean result)
Apache Camel