|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.impl.ProducerCache
public class ProducerCache
Cache containing created Producer
.
Constructor Summary | |
---|---|
ProducerCache(CamelContext context)
|
|
ProducerCache(CamelContext context,
ServicePool<Endpoint,Producer> producerServicePool)
|
|
ProducerCache(CamelContext context,
ServicePool<Endpoint,Producer> producerServicePool,
Map<String,Producer> cache)
|
Method Summary | ||
---|---|---|
protected Producer |
doGetProducer(Endpoint endpoint,
boolean pooled)
|
|
|
doInProducer(Endpoint endpoint,
Exchange exchange,
ExchangePattern pattern,
ProducerCallback<T> callback)
Sends an exchange to an endpoint using a supplied callback |
|
protected void |
doStart()
|
|
protected void |
doStop()
|
|
Producer |
getProducer(Endpoint endpoint)
|
|
void |
send(Endpoint endpoint,
Exchange exchange)
Sends the exchange to the given endpoint |
|
Exchange |
send(Endpoint endpoint,
ExchangePattern pattern,
Processor processor)
Sends an exchange to an endpoint using a supplied Processor to populate the exchange |
|
Exchange |
send(Endpoint endpoint,
Processor processor)
Sends an exchange to an endpoint using a supplied Processor to populate the exchange |
|
protected Exchange |
sendExchange(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Exchange exchange)
|
Methods inherited from class org.apache.camel.impl.ServiceSupport |
---|
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProducerCache(CamelContext context)
public ProducerCache(CamelContext context, ServicePool<Endpoint,Producer> producerServicePool)
public ProducerCache(CamelContext context, ServicePool<Endpoint,Producer> producerServicePool, Map<String,Producer> cache)
Method Detail |
---|
public Producer getProducer(Endpoint endpoint)
public void send(Endpoint endpoint, Exchange exchange)
endpoint
- the endpoint to send the exchange toexchange
- the exchange to sendpublic Exchange send(Endpoint endpoint, Processor processor)
Processor
to populate the exchange
endpoint
- the endpoint to send the exchange toprocessor
- the transformer used to populate the new exchange
public Exchange send(Endpoint endpoint, ExchangePattern pattern, Processor processor)
Processor
to populate the exchange
endpoint
- the endpoint to send the exchange topattern
- the message ExchangePattern
such as
ExchangePattern.InOnly
or ExchangePattern.InOut
processor
- the transformer used to populate the new exchange
public <T> T doInProducer(Endpoint endpoint, Exchange exchange, ExchangePattern pattern, ProducerCallback<T> callback) throws Exception
endpoint
- the endpoint to send the exchange toexchange
- the exchange, can be null if so then create a new exchange from the producerpattern
- the exchange pattern, can be null
Exception
- if an internal processing error has occurred.protected Exchange sendExchange(Endpoint endpoint, ExchangePattern pattern, Processor processor, Exchange exchange) throws Exception
Exception
protected Producer doGetProducer(Endpoint endpoint, boolean pooled)
protected void doStop() throws Exception
doStop
in class ServiceSupport
Exception
protected void doStart() throws Exception
doStart
in class ServiceSupport
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |