/** * This is used to cancel the operation if the reactor decides to * reject it for some reason. Typically this method will never be * invoked as this operation never times out. However, should the * reactor cancel the operation this will close the socket. */ public void cancel() { try { close(); } catch(Throwable e) { return; } }
/** * This is used to cancel the operation if the reactor decides to * reject it for some reason. Typically this method will never be * invoked as this operation never times out. However, should the * reactor cancel the operation this will close the socket. */ public void cancel() { try { close(); } catch(Throwable cause) { trace.trace(ERROR, cause); } }
/** * This is used to cancel the operation if the reactor decides to * reject it for some reason. Typically this method will never be * invoked as this operation never times out. However, should the * reactor cancel the operation this will close the socket. */ public void cancel() { try { close(); } catch(Throwable cause) { trace.trace(ERROR, cause); } }
/** * This is used to close the connection and the server socket * used to accept connections. This will perform a close of the * connected server socket and the dispatching thread. */ public void close() throws IOException { try { acceptor.close(); reactor.stop(); } catch(Exception cause) { throw new ConnectionException("Close error", cause); } } }
/** * This is used to close the connection and the server socket * used to accept connections. This will perform a close of the * connected server socket and the dispatching thread. */ public void close() throws IOException { try { acceptor.close(); reactor.stop(); } catch(Exception cause) { throw new ConnectionException("Close error", cause); } } }
/** * This is used to close the connection and the server socket * used to accept connections. This will perform a close of the * connected server socket that have been created from using * the <code>Acceptor</code> object. * * @throws IOException thrown if there is a problem closing */ public void close() throws IOException { try { acceptor.close(); reactor.stop(); } catch(Exception cause) { throw new ConnectionException("Close error", cause); } } }