public void operationComplete(IoFuture future) { removeSession((AbstractIoSession) future.getSession()); } }
/** * {@inheritDoc} */ @Override public void operationComplete(IoFuture future) { removeSession((AbstractIoSession) future.getSession()); }
public void operationComplete(IoFuture future) { synchronized (TAKEN_LOCAL_ADDRESSES) { TAKEN_LOCAL_ADDRESSES.remove(future.getSession().getLocalAddress()); } } }
/** * {@inheritDoc} */ @Override public void operationComplete(IoFuture future) { future.getSession().closeNow(); } };
public void operationComplete(IoFuture future) { synchronized (TAKEN_LOCAL_ADDRESSES) { TAKEN_LOCAL_ADDRESSES.remove(future.getSession().getLocalAddress()); } } }
public void operationComplete(IoFuture future) { future.getSession().close(true); } };
/** * {@inheritDoc} */ @Override public void operationComplete(IoFuture future) { future.getSession().closeNow(); } };
/** * {@inheritDoc} */ @Override public void operationComplete(IoFuture future) { removeSession((AbstractIoSession) future.getSession()); }
public void operationComplete(IoFuture future) { synchronized (TAKEN_LOCAL_ADDRESSES) { TAKEN_LOCAL_ADDRESSES.remove(future.getSession() .getLocalAddress()); } } }
@Override public void operationComplete(IoFuture future) { try { // will throw RuntimeException after connection error future.getSession(); } catch (Throwable e) { //if there isn't an ClientExceptionHandler set, a //RuntimeException may be thrown in handleException handleException(e); } } });
@Override public void operationComplete ( final IoFuture future ) { try { // set new session setSession ( future.getSession () ); } catch ( final Exception e ) { // handle case of re-connect failure disconnected ( e ); } } } );
ConnectFuture onConnect = connector.connect(); onConnect.addListener((IoFuture future) -> { IoSession created = future.getSession(); pendingChanged(created, null); });
this.disposalFuture = disposalFuture = dispose0(); } catch (Exception e) { IoSession ioSession = this.disposalFuture != null ? this.disposalFuture.getSession() : null; ExceptionMonitor.getInstance().exceptionCaught(e, ioSession); } finally {