Class MiloClientCachingConnectionManager
- java.lang.Object
-
- org.apache.camel.component.milo.client.MiloClientCachingConnectionManager
-
- All Implemented Interfaces:
MiloClientConnectionManager
public class MiloClientCachingConnectionManager extends Object implements MiloClientConnectionManager
A cachingMiloClientConnectionManager
which cache and reuses the sameMiloClientConnection
for clients with the same cache id (MiloClientConfiguration.toCacheId()
.
-
-
Constructor Summary
Constructors Constructor Description MiloClientCachingConnectionManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MiloClientConnection
createConnection(MiloClientConfiguration configuration, MonitorFilterConfiguration monitorFilterConfiguration)
Creates the connectionvoid
releaseConnection(MiloClientConnection connection)
Releases the connection
-
-
-
Method Detail
-
createConnection
public MiloClientConnection createConnection(MiloClientConfiguration configuration, MonitorFilterConfiguration monitorFilterConfiguration)
Description copied from interface:MiloClientConnectionManager
Creates the connection- Specified by:
createConnection
in interfaceMiloClientConnectionManager
-
releaseConnection
public void releaseConnection(MiloClientConnection connection)
Description copied from interface:MiloClientConnectionManager
Releases the connection- Specified by:
releaseConnection
in interfaceMiloClientConnectionManager
-
-