org.apache.camel.util
Class ProducerCache<E extends Exchange>

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.util.ProducerCache<E>
All Implemented Interfaces:
Service

public class ProducerCache<E extends Exchange>
extends ServiceSupport

Version:
$Revision: 563607 $

Constructor Summary
ProducerCache()
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
 Producer<E> getProducer(Endpoint<E> endpoint)
           
 void send(Endpoint<E> endpoint, E exchange)
          Sends the exchange to the given endpoint
 E send(Endpoint<E> endpoint, Processor processor)
          Sends an exchange to an endpoint using a supplied
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getThreadName, isStarted, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProducerCache

public ProducerCache()
Method Detail

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 to
exchange - 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 to
processor - 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.