void handlePreAuthCloseRequest() { try { terminateHeartbeat(); synchronized (getLock()) { connection.close(); } } catch (IOException e) { Messages.conn.debug("Error closing remoting channel", e); } }
public void shutdownWrites() { synchronized (queue) { closed = true; terminateHeartbeat(); final ConduitStreamSinkChannel sinkChannel = connection.getSinkChannel(); try { if (! queue.isEmpty()) { sinkChannel.resumeWrites(); return; } sinkChannel.shutdownWrites(); if (! sinkChannel.flush()) { sinkChannel.resumeWrites(); return; } Messages.conn.logf(FQCN, Logger.Level.TRACE, null, "Shut down writes on channel"); } catch (IOException e) { handleException(e, false); Pooled<ByteBuffer> unqueued; while ((unqueued = queue.poll()) != null) { unqueued.free(); } } } }
Messages.conn.trace("Flushed channel"); if (closed) { terminateHeartbeat();
void handlePreAuthCloseRequest() { try { terminateHeartbeat(); channel.close(); } catch (IOException e) { RemoteLogger.conn.debug("Error closing remoting channel", e); } }
void handlePreAuthCloseRequest() { try { terminateHeartbeat(); synchronized (getLock()) { connection.close(); } } catch (IOException e) { Messages.conn.debug("Error closing remoting channel", e); } }
public void shutdownWrites() { synchronized (queue) { closed = true; terminateHeartbeat(); final ConduitStreamSinkChannel sinkChannel = connection.getSinkChannel(); try { if (! queue.isEmpty()) { sinkChannel.resumeWrites(); return; } sinkChannel.shutdownWrites(); if (! sinkChannel.flush()) { sinkChannel.resumeWrites(); return; } Messages.conn.logf(FQCN, Logger.Level.TRACE, null, "Shut down writes on channel"); } catch (IOException e) { handleException(e, false); Pooled<ByteBuffer> unqueued; while ((unqueued = queue.poll()) != null) { unqueued.free(); } } } }
public void shutdownWrites() { synchronized (queue) { closed = true; terminateHeartbeat(); final ConnectedMessageChannel channel = getChannel(); try { if (! queue.isEmpty()) { channel.resumeWrites(); return; } channel.shutdownWrites(); if (! channel.flush()) { channel.resumeWrites(); return; } RemoteLogger.conn.logf(FQCN, Logger.Level.TRACE, null, "Shut down writes on channel"); } catch (IOException e) { handleException(e, false); channel.wakeupReads(); Pooled<ByteBuffer> unqueued; while ((unqueued = queue.poll()) != null) { unqueued.free(); } } } }
Messages.conn.trace("Flushed channel"); if (closed) { terminateHeartbeat();
RemoteLogger.conn.logf(FQCN, Logger.Level.TRACE, null, "Flushed channel"); if (closed) { terminateHeartbeat();