@Override public void cleanup() { sessionChannel.close(); // if the server is sending a disconnect // any pending blocked operation could hang without this sessionChannel.returnBlocking(); }
private void internalClose() { // We close the underlying transport connection getTransportConnection().close(); for (Channel channel : channels.values()) { channel.close(); } }
@Override public void cleanup() { sessionChannel.close(); // if the server is sending a disconnect // any pending blocked operation could hang without this sessionChannel.returnBlocking(); }
@Override public void cleanup() { sessionChannel.close(); // if the server is sending a disconnect // any pending blocked operation could hang without this sessionChannel.returnBlocking(); }
@Override public void cleanup() { sessionChannel.close(); // if the server is sending a disconnect // any pending blocked operation could hang without this sessionChannel.returnBlocking(); }
@Override public void cleanup() { sessionChannel.close(); // if the server is sending a disconnect // any pending blocked operation could hang without this sessionChannel.returnBlocking(); }
@Override public void cleanup() { sessionChannel.close(); // if the server is sending a disconnect // any pending blocked operation could hang without this sessionChannel.returnBlocking(); }
@Override public void cleanup() { sessionChannel.close(); // if the server is sending a disconnect // any pending blocked operation could hang without this sessionChannel.returnBlocking(); }
private void internalClose() { // We close the underlying transport connection getTransportConnection().close(); for (Channel channel : channels.values()) { channel.close(); } }
private void internalClose() { // We close the underlying transport connection getTransportConnection().close(); for (Channel channel : channels.values()) { channel.close(); } }
private void internalClose() { // We close the underlying transport connection getTransportConnection().close(); for (Channel channel : channels.values()) { channel.close(); } }
private void internalClose() { // We close the underlying transport connection getTransportConnection().close(); for (Channel channel : channels.values()) { channel.close(); } }
private void internalClose() { // We close the underlying transport connection getTransportConnection().close(); for (Channel channel : channels.values()) { channel.close(); } }
private void internalClose() { // We close the underlying transport connection getTransportConnection().close(); for (Channel channel : channels.values()) { channel.close(); } }
public void stop(boolean clearTokens) throws Exception { synchronized (this) { if (!started) { logger.trace("Stopping being ignored as it hasn't been started"); return; } started = false; } if (logger.isTraceEnabled()) { logger.trace("stop(clearTokens=" + clearTokens + ")", new Exception("Trace")); } // This is to avoid the write holding a lock while we are trying to close it if (replicatingChannel != null) { replicatingChannel.close(); replicatingChannel.getConnection().getTransportConnection().fireReady(true); } enabled = false; if (clearTokens) { clearReplicationTokens(); } RemotingConnection toStop = remotingConnection; if (toStop != null) { toStop.removeFailureListener(failureListener); toStop.destroy(); } remotingConnection = null; }
channel.close();
private void doConfirmAndResponse(final Packet confirmPacket, final Packet response, final boolean flush, final boolean closeChannel) { // don't confirm if the response is an exception if (confirmPacket != null && (response == null || (response != null && response.getType() != PacketImpl.EXCEPTION))) { channel.confirm(confirmPacket); if (flush) { channel.flushConfirmations(); } } if (response != null) { channel.send(response); } if (closeChannel) { channel.close(); } }
backupQuorum.reset(); if (replicationEndpoint.getChannel() != null) { replicationEndpoint.getChannel().close(); replicationEndpoint.setChannel(null);