org.apache.camel
Interface Producer

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

public interface Producer
extends Processor, Service

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

Version:
$Revision: 712612 $

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()
           
 
Methods inherited from interface org.apache.camel.Processor
process
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Method Detail

getEndpoint

Endpoint getEndpoint()

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

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



Copyright © 2009 Apache Software Foundation. All Rights Reserved.