org.apache.camel
Interface Producer

All Superinterfaces:
IsSingleton, Processor, Service
All Known Implementing Classes:
AhcProducer, ApnsProducer, AtomProducer, CacheProducer, CollectionProducer, CometdProducer, CxfProducer, CxfRsProducer, DefaultAsyncProducer, DefaultProducer, DigitalSignatureProducer, DirectProducer, EventAdminProducer, ExecProducer, GAuthProducer, GenericFileProducer, GHttpProducer, GLoginProducer, GMailProducer, GTaskProducer, HazelcastAtomicnumberProducer, HazelcastListProducer, HazelcastMapProducer, HazelcastMultimapProducer, HazelcastQueueProducer, HazelcastSedaProducer, HdfsProducer, HttpProducer, HttpProducer, IBatisProducer, IrcProducer, JavaSpaceProducer, JcrProducer, JdbcProducer, JettyHttpProducer, JmsProducer, JpaProducer, Jt400DataQueueProducer, Jt400PgmProducer, KestrelProducer, LanguageProducer, LdapProducer, LogProducer, LuceneIndexProducer, LuceneQueryProducer, MailProducer, MinaProducer, MyBatisProducer, NagiosProducer, NettyProducer, PrinterProducer, QuickfixjProducer, RemoteFileProducer, RestletProducer, RmiProducer, RouteboxDirectProducer, RouteboxSedaProducer, S3Producer, SedaProducer, SipPublisher, SmppProducer, SnsProducer, SpringIntegrationProducer, SpringWebserviceProducer, SqlProducer, SqsProducer, StreamProducer, SynchronousDelegateProducer, UnitOfWorkProducer, XmppGroupChatProducer, XmppPrivateChatProducer

public interface Producer
extends Processor, Service, IsSingleton

Provides a channel on which clients can create and invoke message exchanges on an Endpoint

Version:

Method Summary
 Exchange createExchange()
          Creates a new exchange to send to this endpoint
 Exchange createExchange(Exchange exchange)
          Creates a new exchange for communicating with this exchange using the given exchange to pre-populate the values of the headers and messages
 Exchange createExchange(ExchangePattern pattern)
          Creates a new exchange of the given pattern to send to this endpoint
 Endpoint getEndpoint()
          Gets the endpoint this producer sends to.
 
Methods inherited from interface org.apache.camel.Processor
process
 
Methods inherited from interface org.apache.camel.Service
start, stop
 
Methods inherited from interface org.apache.camel.IsSingleton
isSingleton
 

Method Detail

getEndpoint

Endpoint getEndpoint()
Gets the endpoint this producer sends to.

Returns:
the endpoint

createExchange

Exchange createExchange()
Creates a new exchange to send to this endpoint

Returns:
a newly created exchange

createExchange

Exchange createExchange(ExchangePattern pattern)
Creates a new exchange of the given pattern to send to this endpoint

Parameters:
pattern - the exchange pattern
Returns:
a newly created exchange

createExchange

Exchange createExchange(Exchange exchange)
Creates a new exchange for communicating with this exchange using the given exchange to pre-populate the values of the headers and messages

Parameters:
exchange - the existing exchange
Returns:
the created exchange


Apache CAMEL