public final class ConsulPreparedQueryProducer
extends org.apache.camel.support.HeaderSelectorProducer
Constructor and Description |
---|
ConsulPreparedQueryProducer(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 |
create(org.apache.camel.Message message) |
protected void |
execute(org.apache.camel.Message message) |
protected void |
get(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 <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) |
bind, doStart, getProcessor, onMissingProcessor
createExchange, doStop, getEndpoint, isSingleton, toString
build, doBuild, doInit, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public ConsulPreparedQueryProducer(ConsulEndpoint endpoint, ConsulConfiguration configuration)
protected ConsulConfiguration getConfiguration()
protected <D> D getMandatoryHeader(org.apache.camel.Message message, String header, Class<D> type) throws Exception
Exception
protected <D> D getMandatoryHeader(org.apache.camel.Message message, String header, D defaultValue, Class<D> type) throws Exception
Exception
protected 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) throws Exception
Exception
protected void setBodyAndResult(org.apache.camel.Message message, Object body) throws Exception
Exception
protected void setBodyAndResult(org.apache.camel.Message message, Object body, boolean result) throws Exception
Exception
Apache Camel