113114115116117118119120121122
} return local; } public void close() throws IOException { OperatedAsyncClientConnection conn = getConnection(); if (conn != null) { conn.close(); } }
120121122123124125126127128129
conn.close(); } } public void shutdown() throws IOException { OperatedAsyncClientConnection conn = getConnection(); if (conn != null) { conn.shutdown(); } }
127128129130131132133134135136137138
conn.shutdown(); } } public boolean isOpen() { OperatedAsyncClientConnection conn = getConnection(); if (conn != null) { return conn.isOpen(); } else { return false; } }
140141142143144145146147
public boolean isStale() { return isOpen(); } public void setSocketTimeout(int timeout) { OperatedAsyncClientConnection conn = ensureConnection(); conn.setSocketTimeout(timeout); }
145146147148149150151152
OperatedAsyncClientConnection conn = ensureConnection(); conn.setSocketTimeout(timeout); } public int getSocketTimeout() { OperatedAsyncClientConnection conn = ensureConnection(); return conn.getSocketTimeout(); }
150151152153154155156157
OperatedAsyncClientConnection conn = ensureConnection(); return conn.getSocketTimeout(); } public HttpConnectionMetrics getMetrics() { OperatedAsyncClientConnection conn = ensureConnection(); return conn.getMetrics(); }
155156157158159160161162
OperatedAsyncClientConnection conn = ensureConnection(); return conn.getMetrics(); } public InetAddress getLocalAddress() { OperatedAsyncClientConnection conn = ensureConnection(); return conn.getLocalAddress(); }
160161162163164165166167
OperatedAsyncClientConnection conn = ensureConnection(); return conn.getLocalAddress(); } public int getLocalPort() { OperatedAsyncClientConnection conn = ensureConnection(); return conn.getLocalPort(); }
165166167168169170171172
OperatedAsyncClientConnection conn = ensureConnection(); return conn.getLocalPort(); } public InetAddress getRemoteAddress() { OperatedAsyncClientConnection conn = ensureConnection(); return conn.getRemoteAddress(); }
170171172173174175176177
OperatedAsyncClientConnection conn = ensureConnection(); return conn.getRemoteAddress(); } public int getRemotePort() { OperatedAsyncClientConnection conn = ensureConnection(); return conn.getRemotePort(); }