@Alias(value="inbound-listener")
@MediaType(value="*/*",
strict=false)
@DisplayName(value="On New Inbound Message")
@Summary(value="Triggers when a message is received from an inbound WebSocket")
public class InboundMessageListener
extends PathSource<InputStream,InboundWebSocketAttributes>
implements org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Disposable
This source will trigger the owning flow each time one of those WebSockets send information to this server.
Additionally, any <websocket:on-inbound-connection> component with a matching path will also be
triggered when that socket connection is established.
| Modifier and Type | Field and Description |
|---|---|
static String |
ALIAS |
config, connectionProvider, fluxCapacitor, path, webSocketServer| Constructor and Description |
|---|
InboundMessageListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
void |
initialise() |
void |
onStart(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,InboundWebSocketAttributes> sourceCallback) |
void |
onStop() |
disengageFluxCapacitor, engageFluxCapacitor, resolvePathpublic static final String ALIAS
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void onStart(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,InboundWebSocketAttributes> sourceCallback) throws org.mule.runtime.api.exception.MuleException
onStart in class org.mule.runtime.extension.api.runtime.source.Source<InputStream,InboundWebSocketAttributes>org.mule.runtime.api.exception.MuleExceptionpublic void onStop()
onStop in class org.mule.runtime.extension.api.runtime.source.Source<InputStream,InboundWebSocketAttributes>public void dispose()
dispose in interface org.mule.runtime.api.lifecycle.DisposableCopyright © 2024 MuleSoft, Inc.. All rights reserved.