public class WebsocketConsumer extends org.apache.camel.impl.DefaultConsumer implements WebsocketProducerConsumer
Constructor and Description |
---|
WebsocketConsumer(WebsocketEndpoint endpoint,
org.apache.camel.Processor processor) |
Modifier and Type | Method and Description |
---|---|
WebsocketEndpoint |
getEndpoint()
Gets the endpoint
|
String |
getPath() |
void |
sendMessage(String connectionKey,
String message) |
void |
start() |
void |
stop() |
createUoW, doneUoW, doStart, doStop, getAsyncProcessor, getExceptionHandler, getProcessor, handleException, handleException, setExceptionHandler, toString
public WebsocketConsumer(WebsocketEndpoint endpoint, org.apache.camel.Processor processor)
public void start() throws Exception
start
in interface org.apache.camel.Service
start
in class org.apache.camel.support.ServiceSupport
Exception
public void stop() throws Exception
stop
in interface org.apache.camel.Service
stop
in class org.apache.camel.support.ServiceSupport
Exception
public WebsocketEndpoint getEndpoint()
WebsocketProducerConsumer
getEndpoint
in interface WebsocketProducerConsumer
getEndpoint
in interface org.apache.camel.Consumer
getEndpoint
in class org.apache.camel.impl.DefaultConsumer
public String getPath()
Apache Camel