public class ConnectionManager extends Object
| Constructor and Description |
|---|
ConnectionManager() |
| Modifier and Type | Method and Description |
|---|---|
ZConnection |
borrowConnection(HttpUrl url) |
void |
cleanOldConnection() |
void |
closeAllConnection() |
static void |
closeConnection(SocketChannel connection) |
static SocketChannel |
openNewConnection(String domain,
int port) |
void |
returnConnection(HttpUrl url,
SocketChannel connection,
ZSSLConnection sslConnection) |
public static SocketChannel openNewConnection(String domain, int port) throws IOException
IOExceptionpublic static void closeConnection(SocketChannel connection)
public ZConnection borrowConnection(HttpUrl url) throws IOException
IOExceptionpublic void returnConnection(HttpUrl url, SocketChannel connection, ZSSLConnection sslConnection)
public void closeAllConnection()
public void cleanOldConnection()