class ClientConnectionService {

    @PreDestroy
    public void closeAllConnections() {
        LOGGER.info("Closing all connections.");
        final Collection<ClientConnection> connections = this.connectionCache.getConnections();
        LOGGER.warn("{} active connections found, closing all.", connections.size());
        connections.forEach(this::close);
    }

}