org.mule.providers.tcp
Class TcpStreamingMessageReceiver
java.lang.Object
org.mule.providers.AbstractMessageReceiver
org.mule.providers.PollingMessageReceiver
org.mule.providers.tcp.TcpStreamingMessageReceiver
- All Implemented Interfaces:
- Disposable, Lifecycle, Startable, Stoppable, UMOConnectable, UMOMessageReceiver
- public class TcpStreamingMessageReceiver
- extends PollingMessageReceiver
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.
- Version:
- $Revision: 3798 $
- Author:
- Rich Lucente
| Methods inherited from class org.mule.providers.AbstractMessageReceiver |
applyResponseTransformer, connect, disconnect, dispose, doDispose, doStop, getComponent, getConnectEventId, getConnectionDescription, getConnector, getEndpoint, getEndpointURI, getListener, getWorkManager, handleException, handleUnacceptedFilter, isConnected, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, setComponent, setConnector, setEndpoint, setExceptionDetails, setListener, setWorkManager, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
clientSocket
protected Socket clientSocket
dataIn
protected DataInputStream dataIn
protocol
protected TcpProtocol protocol
TcpStreamingMessageReceiver
public TcpStreamingMessageReceiver(UMOConnector connector,
UMOComponent component,
UMOEndpoint endpoint)
throws InitialisationException
poll
public void poll()
throws Exception
- Specified by:
poll in class PollingMessageReceiver
- Throws:
Exception
doConnect
public void doConnect()
throws ConnectException
- Specified by:
doConnect in class AbstractMessageReceiver
- Throws:
ConnectException
doDisconnect
public void doDisconnect()
throws Exception
- Specified by:
doDisconnect in class AbstractMessageReceiver
- Throws:
Exception
Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.