org.apache.camel.component.cometd
Class CometdConsumer

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.DefaultConsumer
          extended by org.apache.camel.component.cometd.CometdConsumer
All Implemented Interfaces:
CometdProducerConsumer, org.apache.camel.Consumer, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class CometdConsumer
extends org.apache.camel.impl.DefaultConsumer
implements CometdProducerConsumer

A Consumer for receiving messages using Cometd and Bayeux protocol.


Nested Class Summary
static class CometdConsumer.ConsumerService
           
 
Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultConsumer
log
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
CometdConsumer(CometdEndpoint endpoint, org.apache.camel.Processor processor)
           
 
Method Summary
 CometdConsumer.ConsumerService getConsumerService()
           
 CometdEndpoint getEndpoint()
          Gets the endpoint
 void setBayeux(org.cometd.server.BayeuxServerImpl bayeux)
          Sets the bayeux to use.
 void start()
           
 void stop()
           
 
Methods inherited from class org.apache.camel.impl.DefaultConsumer
doStart, doStop, getAsyncProcessor, getExceptionHandler, getProcessor, handleException, handleException, setExceptionHandler, toString
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CometdConsumer

public CometdConsumer(CometdEndpoint endpoint,
                      org.apache.camel.Processor processor)
Method Detail

start

public void start()
           throws Exception
Specified by:
start in interface org.apache.camel.Service
Overrides:
start in class org.apache.camel.support.ServiceSupport
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface org.apache.camel.Service
Overrides:
stop in class org.apache.camel.support.ServiceSupport
Throws:
Exception

setBayeux

public void setBayeux(org.cometd.server.BayeuxServerImpl bayeux)
Description copied from interface: CometdProducerConsumer
Sets the bayeux to use.

Specified by:
setBayeux in interface CometdProducerConsumer

getEndpoint

public CometdEndpoint getEndpoint()
Description copied from interface: CometdProducerConsumer
Gets the endpoint

Specified by:
getEndpoint in interface CometdProducerConsumer
Specified by:
getEndpoint in interface org.apache.camel.Consumer
Overrides:
getEndpoint in class org.apache.camel.impl.DefaultConsumer

getConsumerService

public CometdConsumer.ConsumerService getConsumerService()


Apache CAMEL