@Override public void onShutDown(ShutdownSignalException signal) { for (ConnectionListener delegate : this.delegates) { delegate.onShutDown(signal); } }
@Override public void onShutDown(ShutdownSignalException signal) { for (ConnectionListener delegate : this.delegates) { delegate.onShutDown(signal); } }
@Override public void shutdownCompleted(ShutdownSignalException cause) { this.closeExceptionLogger.log(logger, "Channel shutdown", cause); int protocolClassId = cause.getReason().protocolClassId(); if (protocolClassId == RabbitUtils.CHANNEL_PROTOCOL_CLASS_ID_20) { getChannelListener().onShutDown(cause); } else if (protocolClassId == RabbitUtils.CONNECTION_PROTOCOL_CLASS_ID_10) { getConnectionListener().onShutDown(cause); } }
@Override public void shutdownCompleted(ShutdownSignalException cause) { this.closeExceptionLogger.log(logger, "Channel shutdown", cause); int protocolClassId = cause.getReason().protocolClassId(); if (protocolClassId == RabbitUtils.CHANNEL_PROTOCOL_CLASS_ID_20) { getChannelListener().onShutDown(cause); } else if (protocolClassId == RabbitUtils.CONNECTION_PROTOCOL_CLASS_ID_10) { getConnectionListener().onShutDown(cause); } }