org.apache.camel.util
Class ProducerCache<E extends Exchange>
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.util.ProducerCache<E>
- All Implemented Interfaces:
- Service
public class ProducerCache<E extends Exchange>
- extends ServiceSupport
- Version:
- $Revision: 563607 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProducerCache
public ProducerCache()
getProducer
public Producer<E> getProducer(Endpoint<E> endpoint)
send
public void send(Endpoint<E> endpoint,
E exchange)
- Sends the exchange to the given endpoint
- Parameters:
endpoint
- the endpoint to send the exchange toexchange
- the exchange to send
send
public E send(Endpoint<E> endpoint,
Processor processor)
- Sends an exchange to an endpoint using a supplied
- Parameters:
endpoint
- the endpoint to send the exchange toprocessor
- the transformer used to populate the new exchange
doStop
protected void doStop()
throws Exception
- Specified by:
doStop
in class ServiceSupport
- Throws:
Exception
doStart
protected void doStart()
throws Exception
- Specified by:
doStart
in class ServiceSupport
- Throws:
Exception
Copyright © 2007 Apache Software Foundation. All Rights Reserved.