@Override public void close() throws IOException { try { super.close(); } finally { connectionManager.shutdown(); } }
@Override public void close() throws IOException { try { connectionManager.shutdown(); } finally { super.close(); } }
@Override public void close() throws IOException { try { super.close(); } finally { connectionManager.shutdown(); } }
@Override public void close() throws IOException { try { connectionManager.shutdown(); } finally { super.close(); } }
@Override public void close() throws IOException { try { super.close(); } finally { connectionManager.shutdown(); } }
@Override public void close() throws IOException { try { super.close(); final ReconnectRunner reconnectTask = this.reconnectRunner; if (reconnectTask != null) { this.reconnectRunner = null; reconnectTask.cancel(); } } finally { connectionManager.shutdown(); } }
@Override public void close() throws IOException { try { super.close(); final ReconnectRunner reconnectTask = this.reconnectRunner; if (reconnectTask != null) { this.reconnectRunner = null; reconnectTask.cancel(); } } finally { connectionManager.shutdown(); } }
@Override public void close() throws IOException { synchronized (this) { try { if(isConnected()) { try { channelHandler.executeRequest(new UnregisterModelControllerRequest(), null).getResult().await(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } } finally { try { connectionManager.shutdown(); } finally { super.close(); } } } }
@Override public void close() throws IOException { try { if(prepareClose() && isConnected()) { try { channelHandler.executeRequest(new UnregisterModelControllerRequest(), null).getResult().await(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } } finally { try { super.close(); } finally { connectionManager.shutdown(); } } }
@Override public void close() throws IOException { try { if(prepareClose() && isConnected()) { try { channelHandler.executeRequest(new UnregisterModelControllerRequest(), null).getResult().await(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } } finally { try { super.close(); } finally { connectionManager.shutdown(); } } }