public interface ListenerConnection extends SocketConnection
SocketConnection enables the SocketListener to await for new incoming connections and wraps each
one of those into a SocketWorker so they can run independently in their own thread.| Modifier and Type | Method and Description |
|---|---|
SocketWorker |
listen(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,SocketAttributes> sourceCallback)
This method blocks until a new connection is received or timeout exception is thrown.
|
connect, disconnect, validateSocketWorker listen(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,SocketAttributes> sourceCallback) throws IOException, org.mule.runtime.api.connection.ConnectionException
sourceCallback - used in the SocketWorker to deliver the new received messagesRunnable that will represent a new received connection. The Runnable should be scheduled with an
Executor in it's own thread.IOException - if the connection was suddenly closedorg.mule.runtime.api.connection.ConnectionException - if the connection was closed and the cause was the invocation of
SocketConnection.disconnect()Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.