protected void preClose() { // Check if connection init event (like CONNECT or ACCEPT) has been sent if (connectCloseSemaphoreUpdater.getAndSet(this, NOTIFICATION_CLOSED_COMPLETE) == NOTIFICATION_INITIALIZED) { transport.fireIOEvent(IOEvent.CLOSED, this, null); } }
protected void preClose() { // Check if connection init event (like CONNECT or ACCEPT) has been sent if (connectCloseSemaphoreUpdater.getAndSet(this, NOTIFICATION_CLOSED_COMPLETE) == NOTIFICATION_INITIALIZED) { transport.fireIOEvent(IOEvent.CLOSED, this, null); } }
protected void preClose() { // Check if connection init event (like CONNECT or ACCEPT) has been sent if (connectCloseSemaphoreUpdater.getAndSet(this, NOTIFICATION_CLOSED_COMPLETE) == NOTIFICATION_INITIALIZED) { transport.fireIOEvent(IOEvent.CLOSED, this, null); } }
protected void preClose() { // Check if connection init event (like CONNECT or ACCEPT) has been sent if (connectCloseSemaphoreUpdater.getAndSet(this, NOTIFICATION_CLOSED_COMPLETE) == NOTIFICATION_INITIALIZED) { transport.fireIOEvent(IOEvent.CLOSED, this, null); } }
protected void preClose() { // Check if connection init event (like CONNECT or ACCEPT) has been sent if (connectCloseSemaphoreUpdater.getAndSet(this, NOTIFICATION_CLOSED_COMPLETE) == NOTIFICATION_INITIALIZED) { transport.fireIOEvent(IOEvent.CLOSED, this, null); } }
protected void preClose() { // Check if connection init event (like CONNECT or ACCEPT) has been sent if (connectCloseSemaphoreUpdater.getAndSet(this, NOTIFICATION_CLOSED_COMPLETE) == NOTIFICATION_INITIALIZED) { transport.fireIOEvent(IOEvent.CLOSED, this, null); } }
protected void preClose() { // Check if connection init event (like CONNECT or ACCEPT) has been sent if (connectCloseSemaphoreUpdater.getAndSet(this, NOTIFICATION_CLOSED_COMPLETE) == NOTIFICATION_INITIALIZED) { transport.fireIOEvent(IOEvent.CLOSED, this, null); } }
protected void preClose() { // Check if connection init event (like CONNECT or ACCEPT) has been sent if (connectCloseSemaphoreUpdater.getAndSet(this, NOTIFICATION_CLOSED_COMPLETE) == NOTIFICATION_INITIALIZED) { transport.fireIOEvent(IOEvent.CLOSED, this, null); } }
protected void preClose() { // Check if connection init event (like CONNECT or ACCEPT) has been sent if (connectCloseSemaphoreUpdater.getAndSet(this, NOTIFICATION_CLOSED_COMPLETE) == NOTIFICATION_INITIALIZED) { transport.fireIOEvent(IOEvent.CLOSED, this, null); } }
protected void preClose() { // Check if connection init event (like CONNECT or ACCEPT) has been sent if (connectCloseSemaphoreUpdater.getAndSet(this, NOTIFICATION_CLOSED_COMPLETE) == NOTIFICATION_INITIALIZED) { transport.fireIOEvent(IOEvent.CLOSED, this, null); } }
protected void preClose() { // Check if connection init event (like CONNECT or ACCEPT) has been sent if (connectCloseSemaphoreUpdater.getAndSet(this, NOTIFICATION_CLOSED_COMPLETE) == NOTIFICATION_INITIALIZED) { transport.fireIOEvent(IOEvent.CLOSED, this, null); } }
protected void preClose() { // Check if connection init event (like CONNECT or ACCEPT) has been sent if (connectCloseSemaphoreUpdater.getAndSet(this, NOTIFICATION_CLOSED_COMPLETE) == NOTIFICATION_INITIALIZED) { transport.fireIOEvent(IOEvent.CLOSED, this, null); } }
@Override public void completed(RegisterChannelResult result) { try { final TCPNIOTransport nioTransport = (TCPNIOTransport) transport; nioTransport.selectorRegistrationHandler.completed(result); final SelectionKeyHandler selectionKeyHandler = nioTransport.getSelectionKeyHandler(); final SelectionKey acceptedConnectionKey = result.getSelectionKey(); final TCPNIOConnection connection = (TCPNIOConnection) selectionKeyHandler.getConnectionForKey(acceptedConnectionKey); if (listener != null) { listener.result(connection); } if (connection.notifyReady()) { transport.fireIOEvent(IOEvent.ACCEPTED, connection, null); } } catch (Exception e) { LOGGER.log(Level.FINE, "Exception happened, when " + "trying to accept the connection", e); } } }
@Override public void completed(RegisterChannelResult result) { try { final TCPNIOTransport nioTransport = (TCPNIOTransport) transport; nioTransport.selectorRegistrationHandler.completed(result); final SelectionKeyHandler selectionKeyHandler = nioTransport.getSelectionKeyHandler(); final SelectionKey acceptedConnectionKey = result.getSelectionKey(); final TCPNIOConnection connection = (TCPNIOConnection) selectionKeyHandler.getConnectionForKey(acceptedConnectionKey); if (listener != null) { listener.result(connection); } if (connection.notifyReady()) { transport.fireIOEvent(IOEvent.ACCEPTED, connection, null); } } catch (Exception e) { LOGGER.log(Level.FINE, "Exception happened, when " + "trying to accept the connection", e); } } }
@Override public void completed(RegisterChannelResult result) { try { final TCPNIOTransport nioTransport = (TCPNIOTransport) transport; nioTransport.selectorRegistrationHandler.completed(result); final SelectionKeyHandler selectionKeyHandler = nioTransport.getSelectionKeyHandler(); final SelectionKey acceptedConnectionKey = result.getSelectionKey(); final TCPNIOConnection connection = (TCPNIOConnection) selectionKeyHandler.getConnectionForKey(acceptedConnectionKey); if (listener != null) { listener.result(connection); } if (connection.notifyReady()) { transport.fireIOEvent(IOEvent.ACCEPTED, connection, null); } } catch (Exception e) { LOGGER.log(Level.FINE, "Exception happened, when " + "trying to accept the connection", e); } } }
@Override public void completed(RegisterChannelResult result) { try { final TCPNIOTransport nioTransport = (TCPNIOTransport) transport; nioTransport.selectorRegistrationHandler.completed(result); final SelectionKeyHandler selectionKeyHandler = nioTransport.getSelectionKeyHandler(); final SelectionKey acceptedConnectionKey = result.getSelectionKey(); final TCPNIOConnection connection = (TCPNIOConnection) selectionKeyHandler.getConnectionForKey(acceptedConnectionKey); if (listener != null) { listener.result(connection); } if (connection.notifyReady()) { transport.fireIOEvent(IOEvent.ACCEPTED, connection, null); } } catch (Exception e) { LOGGER.log(Level.FINE, "Exception happened, when " + "trying to accept the connection", e); } } }
@Override public void completed(RegisterChannelResult result) { try { final TCPNIOTransport nioTransport = (TCPNIOTransport) transport; nioTransport.selectorRegistrationHandler.completed(result); final SelectionKeyHandler selectionKeyHandler = nioTransport.getSelectionKeyHandler(); final SelectionKey acceptedConnectionKey = result.getSelectionKey(); final TCPNIOConnection connection = (TCPNIOConnection) selectionKeyHandler.getConnectionForKey(acceptedConnectionKey); if (listener != null) { listener.result(connection); } if (connection.notifyReady()) { transport.fireIOEvent(IOEvent.ACCEPTED, connection, null); } } catch (Exception e) { LOGGER.log(Level.FINE, "Exception happened, when " + "trying to accept the connection", e); } } }
@Override public void completed(RegisterChannelResult result) { try { final TCPNIOTransport nioTransport = (TCPNIOTransport) transport; nioTransport.selectorRegistrationHandler.completed(result); final SelectionKeyHandler selectionKeyHandler = nioTransport.getSelectionKeyHandler(); final SelectionKey acceptedConnectionKey = result.getSelectionKey(); final TCPNIOConnection connection = (TCPNIOConnection) selectionKeyHandler.getConnectionForKey(acceptedConnectionKey); if (listener != null) { listener.result(connection); } if (connection.notifyReady()) { transport.fireIOEvent(IOEvent.ACCEPTED, connection, null); } } catch (Exception e) { LOGGER.log(Level.FINE, "Exception happened, when " + "trying to accept the connection", e); } } }
@Override public void completed(RegisterChannelResult result) { try { final TCPNIOTransport nioTransport = (TCPNIOTransport) transport; nioTransport.selectorRegistrationHandler.completed(result); final SelectionKeyHandler selectionKeyHandler = nioTransport.getSelectionKeyHandler(); final SelectionKey acceptedConnectionKey = result.getSelectionKey(); final TCPNIOConnection connection = (TCPNIOConnection) selectionKeyHandler.getConnectionForKey(acceptedConnectionKey); if (listener != null) { listener.result(connection); } if (connection.notifyReady()) { transport.fireIOEvent(IOEvent.ACCEPTED, connection, null); } } catch (Exception e) { LOGGER.log(Level.FINE, "Exception happened, when " + "trying to accept the connection", e); } } }
@Override public void completed(RegisterChannelResult result) { try { final TCPNIOTransport nioTransport = (TCPNIOTransport) transport; nioTransport.selectorRegistrationHandler.completed(result); final SelectionKeyHandler selectionKeyHandler = nioTransport.getSelectionKeyHandler(); final SelectionKey acceptedConnectionKey = result.getSelectionKey(); final TCPNIOConnection connection = (TCPNIOConnection) selectionKeyHandler.getConnectionForKey(acceptedConnectionKey); if (listener != null) { listener.result(connection); } if (connection.notifyReady()) { transport.fireIOEvent(IOEvent.ACCEPTED, connection, null); } } catch (Exception e) { LOGGER.log(Level.FINE, "Exception happened, when " + "trying to accept the connection", e); } } }