-
public class ConnectionManager
-
-
Constructor Summary
Constructors Constructor Description ConnectionManager()
-
Method Summary
Modifier and Type Method Description static SocketChannelopenNewConnection(String domain, int port)static voidcloseConnection(SocketChannel connection)synchronized ZConnectionborrowConnection(HttpUrl url)synchronized voidreturnConnection(HttpUrl url, SocketChannel connection, ZSSLConnection sslConnection)voidcloseAllHttpURLConnection()voidcloseAllConnection()voidcleanOldConnection()-
-
Method Detail
-
openNewConnection
static SocketChannel openNewConnection(String domain, int port)
-
closeConnection
static void closeConnection(SocketChannel connection)
-
borrowConnection
synchronized ZConnection borrowConnection(HttpUrl url)
-
returnConnection
synchronized void returnConnection(HttpUrl url, SocketChannel connection, ZSSLConnection sslConnection)
-
closeAllHttpURLConnection
void closeAllHttpURLConnection()
-
closeAllConnection
void closeAllConnection()
-
cleanOldConnection
void cleanOldConnection()
-
-
-
-