public final class TcpWorker extends SocketWorker
TcpListenerConnection.listen(SourceCallback), This class is responsible for reading from that connection
is closed by the sender, or Source is stopped.callback, encoding| Constructor and Description |
|---|
TcpWorker(Socket socket,
TcpProtocol protocol,
org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,SocketAttributes> callback) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
void |
doRun() |
void |
onComplete(Object result) |
void |
onError(Throwable e) |
protected void |
shutdownSocket() |
handle, onError, run, setEncodingpublic TcpWorker(Socket socket, TcpProtocol protocol, org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,SocketAttributes> callback) throws IOException
IOExceptionprotected void shutdownSocket()
throws IOException
IOExceptionpublic void doRun()
doRun in class SocketWorkerpublic void onComplete(Object result)
onComplete in class SocketWorkerpublic void onError(Throwable e)
onError in class SocketWorkerpublic void dispose()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.