|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultProducer
org.apache.camel.component.cometd.CometdProducer
public class CometdProducer
A Producer to send messages using Cometd and Bayeux protocol.
| Field Summary |
|---|
| Fields inherited from class org.apache.camel.impl.DefaultProducer |
|---|
log |
| Constructor Summary | |
|---|---|
CometdProducer(CometdEndpoint endpoint)
|
|
| Method Summary | |
|---|---|
org.cometd.server.AbstractBayeux |
getBayeux()
|
CometdEndpoint |
getEndpoint()
Gets the endpoint this producer sends to. |
void |
process(Exchange exchange)
Processes the message exchange |
void |
setBayeux(org.cometd.server.AbstractBayeux bayeux)
Sets the bayeux to use. |
void |
start()
Starts the service |
void |
stop()
Stops the service |
| Methods inherited from class org.apache.camel.impl.DefaultProducer |
|---|
createExchange, createExchange, createExchange, doStart, doStop, isSingleton, toString |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, suspend |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CometdProducer(CometdEndpoint endpoint)
| Method Detail |
|---|
public void start()
throws Exception
Service
start in interface Servicestart in class ServiceSupportException - is thrown if starting failed
public void stop()
throws Exception
Service
stop in interface Servicestop in class ServiceSupportException - is thrown if stopping failedpublic void process(Exchange exchange)
Processor
process in interface Processorexchange - the message exchangepublic CometdEndpoint getEndpoint()
Producer
getEndpoint in interface CometdProducerConsumergetEndpoint in interface ProducergetEndpoint in class DefaultProducerpublic org.cometd.server.AbstractBayeux getBayeux()
public void setBayeux(org.cometd.server.AbstractBayeux bayeux)
CometdProducerConsumer
setBayeux in interface CometdProducerConsumer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||