Class ClientModeConnectionManager
java.lang.Object
org.springframework.integration.ip.tcp.connection.ClientModeConnectionManager
- All Implemented Interfaces:
java.lang.Runnable
public class ClientModeConnectionManager
extends java.lang.Object
implements java.lang.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
-
Constructor Summary
Constructors Constructor Description ClientModeConnectionManager(AbstractConnectionFactory clientConnectionFactory) -
Method Summary
Modifier and Type Method Description booleanisConnected()voidrun()
-
Constructor Details
-
ClientModeConnectionManager
- Parameters:
clientConnectionFactory- The connection factory.
-
-
Method Details
-
run
public void run()- Specified by:
runin interfacejava.lang.Runnable
-
isConnected
public boolean isConnected()
-