Class ClientModeConnectionManager
java.lang.Object
org.springframework.integration.ip.tcp.connection.ClientModeConnectionManager
- All Implemented Interfaces:
Runnable
public class ClientModeConnectionManager extends Object implements Runnable
Intended to be run on a schedule, simply gets the connection
from a client connection factory each time it is run.
If no connection exists (or it has been closed), the
connection factory will create a new one (if possible).
- Since:
- 2.1
- Author:
- Gary Russell, Artem Bilan
-
Constructor Summary
Constructors Constructor Description ClientModeConnectionManager(AbstractConnectionFactory clientConnectionFactory)
-
Method Summary
Modifier and Type Method Description boolean
isConnected()
void
run()
-
Constructor Details
-
ClientModeConnectionManager
- Parameters:
clientConnectionFactory
- The connection factory.
-
-
Method Details
-
run
public void run() -
isConnected
public boolean isConnected()
-