org.apache.camel
Interface Producer<E extends Exchange>

All Superinterfaces:
Processor, Service
All Known Implementing Classes:
CollectionProducer, DefaultProducer, DirectProducer, FileProducer

public interface Producer<E extends Exchange>
extends Processor, Service

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

Version:
$Revision: 630591 $

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

Method Detail

getEndpoint

Endpoint<E> getEndpoint()

createExchange

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

Returns:
a newly created exchange

createExchange

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

Returns:
a newly created exchange

createExchange

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



Copyright © 2009 Apache Software Foundation. All Rights Reserved.