public class DefaultConsumerTemplate
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.ConsumerTemplate
ConsumerTemplate.| Constructor and Description |
|---|
DefaultConsumerTemplate(org.apache.camel.CamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp() |
protected void |
doInit() |
void |
doneUoW(org.apache.camel.Exchange exchange) |
protected void |
doShutdown() |
protected void |
doStart() |
protected void |
doStop() |
protected Object |
extractResultBody(org.apache.camel.Exchange result)
Extracts the body from the given result.
|
org.apache.camel.CamelContext |
getCamelContext() |
int |
getCurrentCacheSize() |
int |
getMaximumCacheSize() |
org.apache.camel.Exchange |
receive(org.apache.camel.Endpoint endpoint) |
org.apache.camel.Exchange |
receive(org.apache.camel.Endpoint endpoint,
long timeout) |
org.apache.camel.Exchange |
receive(String endpointUri) |
org.apache.camel.Exchange |
receive(String endpointUri,
long timeout) |
Object |
receiveBody(org.apache.camel.Endpoint endpoint) |
<T> T |
receiveBody(org.apache.camel.Endpoint endpoint,
Class<T> type) |
Object |
receiveBody(org.apache.camel.Endpoint endpoint,
long timeout) |
<T> T |
receiveBody(org.apache.camel.Endpoint endpoint,
long timeout,
Class<T> type) |
Object |
receiveBody(String endpointUri) |
<T> T |
receiveBody(String endpointUri,
Class<T> type) |
Object |
receiveBody(String endpointUri,
long timeout) |
<T> T |
receiveBody(String endpointUri,
long timeout,
Class<T> type) |
Object |
receiveBodyNoWait(org.apache.camel.Endpoint endpoint) |
<T> T |
receiveBodyNoWait(org.apache.camel.Endpoint endpoint,
Class<T> type) |
Object |
receiveBodyNoWait(String endpointUri) |
<T> T |
receiveBodyNoWait(String endpointUri,
Class<T> type) |
org.apache.camel.Exchange |
receiveNoWait(org.apache.camel.Endpoint endpoint) |
org.apache.camel.Exchange |
receiveNoWait(String endpointUri) |
protected org.apache.camel.Endpoint |
resolveMandatoryEndpoint(String endpointUri) |
void |
setMaximumCacheSize(int maximumCacheSize) |
build, doBuild, doFail, doLifecycleChange, doResume, 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, toString, wait, wait, waitpublic DefaultConsumerTemplate(org.apache.camel.CamelContext camelContext)
public int getMaximumCacheSize()
getMaximumCacheSize in interface org.apache.camel.ConsumerTemplatepublic void setMaximumCacheSize(int maximumCacheSize)
setMaximumCacheSize in interface org.apache.camel.ConsumerTemplatepublic int getCurrentCacheSize()
getCurrentCacheSize in interface org.apache.camel.ConsumerTemplatepublic void cleanUp()
cleanUp in interface org.apache.camel.ConsumerTemplatepublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.ConsumerTemplatepublic org.apache.camel.Exchange receive(String endpointUri)
receive in interface org.apache.camel.ConsumerTemplatepublic org.apache.camel.Exchange receive(org.apache.camel.Endpoint endpoint)
receive in interface org.apache.camel.ConsumerTemplatepublic org.apache.camel.Exchange receive(String endpointUri, long timeout)
receive in interface org.apache.camel.ConsumerTemplatepublic org.apache.camel.Exchange receive(org.apache.camel.Endpoint endpoint,
long timeout)
receive in interface org.apache.camel.ConsumerTemplatepublic org.apache.camel.Exchange receiveNoWait(String endpointUri)
receiveNoWait in interface org.apache.camel.ConsumerTemplatepublic org.apache.camel.Exchange receiveNoWait(org.apache.camel.Endpoint endpoint)
receiveNoWait in interface org.apache.camel.ConsumerTemplatepublic Object receiveBody(String endpointUri)
receiveBody in interface org.apache.camel.ConsumerTemplatepublic Object receiveBody(org.apache.camel.Endpoint endpoint)
receiveBody in interface org.apache.camel.ConsumerTemplatepublic Object receiveBody(String endpointUri, long timeout)
receiveBody in interface org.apache.camel.ConsumerTemplatepublic Object receiveBody(org.apache.camel.Endpoint endpoint, long timeout)
receiveBody in interface org.apache.camel.ConsumerTemplatepublic Object receiveBodyNoWait(String endpointUri)
receiveBodyNoWait in interface org.apache.camel.ConsumerTemplatepublic Object receiveBodyNoWait(org.apache.camel.Endpoint endpoint)
receiveBodyNoWait in interface org.apache.camel.ConsumerTemplatepublic <T> T receiveBody(String endpointUri, Class<T> type)
receiveBody in interface org.apache.camel.ConsumerTemplatepublic <T> T receiveBody(org.apache.camel.Endpoint endpoint,
Class<T> type)
receiveBody in interface org.apache.camel.ConsumerTemplatepublic <T> T receiveBody(String endpointUri, long timeout, Class<T> type)
receiveBody in interface org.apache.camel.ConsumerTemplatepublic <T> T receiveBody(org.apache.camel.Endpoint endpoint,
long timeout,
Class<T> type)
receiveBody in interface org.apache.camel.ConsumerTemplatepublic <T> T receiveBodyNoWait(String endpointUri, Class<T> type)
receiveBodyNoWait in interface org.apache.camel.ConsumerTemplatepublic <T> T receiveBodyNoWait(org.apache.camel.Endpoint endpoint,
Class<T> type)
receiveBodyNoWait in interface org.apache.camel.ConsumerTemplatepublic void doneUoW(org.apache.camel.Exchange exchange)
doneUoW in interface org.apache.camel.ConsumerTemplateprotected org.apache.camel.Endpoint resolveMandatoryEndpoint(String endpointUri)
protected Object extractResultBody(org.apache.camel.Exchange result)
result - the resultprotected void doInit()
throws Exception
doInit in class org.apache.camel.support.service.BaseServiceExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.service.BaseServiceExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.service.BaseServiceExceptionApache Camel