public class WebsocketConsumer extends org.apache.camel.support.DefaultConsumer implements WebsocketProducerConsumer
Constructor and Description |
---|
WebsocketConsumer(WebsocketEndpoint endpoint,
org.apache.camel.Processor processor) |
Modifier and Type | Method and Description |
---|---|
void |
doStart() |
void |
doStop() |
WebsocketEndpoint |
getEndpoint()
Gets the endpoint
|
String |
getPath() |
void |
sendMessage(String connectionKey,
Object message,
InetSocketAddress remote,
String subprotocol,
String relativePath) |
void |
sendMessage(String connectionKey,
String message,
InetSocketAddress remote,
String subprotocol,
String relativePath) |
createExchange, createUoW, defaultConsumerCallback, doBuild, doInit, doneUoW, doShutdown, getAsyncProcessor, getExceptionHandler, getHealthCheck, getProcessor, getRoute, getRouteId, handleException, handleException, releaseExchange, setExceptionHandler, setHealthCheck, setRoute, setRouteId, toString
build, doFail, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public WebsocketConsumer(WebsocketEndpoint endpoint, org.apache.camel.Processor processor)
public void doStart() throws Exception
doStart
in class org.apache.camel.support.DefaultConsumer
Exception
public void doStop() throws Exception
doStop
in class org.apache.camel.support.DefaultConsumer
Exception
public WebsocketEndpoint getEndpoint()
WebsocketProducerConsumer
getEndpoint
in interface WebsocketProducerConsumer
getEndpoint
in interface org.apache.camel.EndpointAware
getEndpoint
in class org.apache.camel.support.DefaultConsumer
public String getPath()
public void sendMessage(String connectionKey, String message, InetSocketAddress remote, String subprotocol, String relativePath)
public void sendMessage(String connectionKey, Object message, InetSocketAddress remote, String subprotocol, String relativePath)
Apache Camel