Class ConnectionManager

java.lang.Object
com.predic8.membrane.core.transport.http.ConnectionManager

public class ConnectionManager extends Object
Pools TCP/IP connections, holding them open for a configurable number of milliseconds.

With keep-alive use as follows: Connection connection = connectionManager.getConnection(...); try { ... } finally { connection.release(); }

Without keep-alive replace Connection.release() by Connection.close().

Note that you should call Connection.release() exactly once, or alternatively Connection.close() at least once.