@Override @SuppressWarnings("synthetic-access") public void operationComplete(IoConnectFuture future) { if (future.isCanceled()) { connectFuture.cancel(); return; } Throwable t = future.getException(); if (t != null) { if (log.isDebugEnabled()) { log.debug("operationComplete({}@{}) failed ({}): {}", username, address, t.getClass().getSimpleName(), t.getMessage()); } connectFuture.setException(t); } else { IoSession ioSession = future.getSession(); try { onConnectOperationComplete(ioSession, connectFuture, username, address, identities, useDefaultIdentities); } catch (RuntimeException e) { log.warn("operationComplete({}@{}) failed ({}) to signal completion of session={}: {}", username, address, e.getClass().getSimpleName(), ioSession, e.getMessage()); if (log.isDebugEnabled()) { log.debug("operationComplete(" + username + "@" + address + ") session=" + ioSession + " completion signal failure details", e); } connectFuture.setException(e); ioSession.close(true); } } }
@Override @SuppressWarnings("synthetic-access") public void operationComplete(IoConnectFuture future) { if (future.isCanceled()) { connectFuture.cancel(); return; } Throwable t = future.getException(); if (t != null) { if (log.isDebugEnabled()) { log.debug("operationComplete({}@{}) failed ({}): {}", username, address, t.getClass().getSimpleName(), t.getMessage()); } connectFuture.setException(t); } else { IoSession ioSession = future.getSession(); try { onConnectOperationComplete(ioSession, connectFuture, username, address, identities, useDefaultIdentities); } catch (RuntimeException e) { log.warn("operationComplete({}@{}) failed ({}) to signal completion of session={}: {}", username, address, e.getClass().getSimpleName(), ioSession, e.getMessage()); if (log.isDebugEnabled()) { log.debug("operationComplete(" + username + "@" + address + ") session=" + ioSession + " completion signal failure details", e); } connectFuture.setException(e); ioSession.close(true); } } }
@Override public void operationComplete(IoConnectFuture future) { if (future.isCanceled()) { connectFuture.cancel(); return; } Throwable t = future.getException(); if (t != null) { connectFuture.setException(t); return; } IoSession ioSession = future.getSession(); try { JGitClientSession session = createSession(ioSession, username, address, hostConfig); connectFuture.setSession(session); } catch (RuntimeException e) { connectFuture.setException(e); ioSession.close(true); } }