org.mule.providers.tcp
Class TcpStreamingMessageReceiver
java.lang.Object
org.mule.providers.AbstractMessageReceiver
org.mule.providers.AbstractPollingMessageReceiver
org.mule.providers.tcp.TcpStreamingMessageReceiver
- All Implemented Interfaces:
- Disposable, Lifecycle, Startable, Stoppable, UMOConnectable, UMOMessageReceiver
- public class TcpStreamingMessageReceiver
- extends AbstractPollingMessageReceiver
TcpStreamingMessageReceiver establishes a TCP client connection to
an external server and reads the streaming data. No polling frequency is used
since with blocking i/o reads will block, and with non-blocking i/o reads will
occur when data is available. Causing delays between read attempts is unnecessary,
so this forces the pollingFrequency property to zero so no pause occurs in the
PollingMessageReceiver class.
| Methods inherited from class org.mule.providers.AbstractMessageReceiver |
applyResponseTransformer, connect, disconnect, dispose, getComponent, getConnectEventId, getConnectionDescription, getConnector, getEndpoint, getEndpointURI, getListener, getReceiverKey, getWorkManager, handleException, handleUnacceptedFilter, isConnected, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, setComponent, setConnector, setEndpoint, setExceptionDetails, setListener, setReceiverKey, setWorkManager, start, stop, toString |
clientSocket
protected Socket clientSocket
dataIn
protected DataInputStream dataIn
protocol
protected TcpProtocol protocol
TcpStreamingMessageReceiver
public TcpStreamingMessageReceiver(UMOConnector connector,
UMOComponent component,
UMOEndpoint endpoint)
throws InitialisationException
doDispose
protected void doDispose()
- Specified by:
doDispose in class AbstractMessageReceiver
doConnect
protected void doConnect()
throws ConnectException
- Specified by:
doConnect in class AbstractMessageReceiver
- Throws:
ConnectException
doDisconnect
protected void doDisconnect()
throws Exception
- Specified by:
doDisconnect in class AbstractMessageReceiver
- Throws:
Exception
poll
public void poll()
throws Exception
- Specified by:
poll in class AbstractPollingMessageReceiver
- Throws:
Exception
Copyright © 2003-2007 MuleSource, Inc.. All Rights Reserved.