org.apache.camel.component.cometd
Class CometdProducer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultProducer
org.apache.camel.component.cometd.CometdProducer
- All Implemented Interfaces:
- CometdProducerConsumer, IsSingleton, Processor, Producer, Service
public class CometdProducer
- extends DefaultProducer
- implements CometdProducerConsumer
A Producer to send messages using Cometd and Bayeux protocol.
- Version:
- $Revision: 2780 $
CometdProducer
public CometdProducer(CometdEndpoint endpoint)
start
public void start()
throws Exception
- Specified by:
start in interface Service- Overrides:
start in class ServiceSupport
- Throws:
Exception
stop
public void stop()
throws Exception
- Specified by:
stop in interface Service- Overrides:
stop in class ServiceSupport
- Throws:
Exception
process
public void process(Exchange exchange)
- Specified by:
process in interface Processor
getEndpoint
public CometdEndpoint getEndpoint()
- Description copied from interface:
CometdProducerConsumer
- Gets the endpoint
- Specified by:
getEndpoint in interface CometdProducerConsumer- Specified by:
getEndpoint in interface Producer- Overrides:
getEndpoint in class DefaultProducer
getBayeux
public org.mortbay.cometd.AbstractBayeux getBayeux()
setBayeux
public void setBayeux(org.mortbay.cometd.AbstractBayeux bayeux)
- Description copied from interface:
CometdProducerConsumer
- Sets the bayeux to use.
- Specified by:
setBayeux in interface CometdProducerConsumer
Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.