log.tracef("Rejecting service open of type %s on %s due to service type name being too long", serviceType, this); result.setException(new ServiceOpenException("Service type name is too long")); return IoUtils.nullCancellable(); } catch (IOException e) { result.setException(e); return IoUtils.nullCancellable(); return IoUtils.nullCancellable(); log.tracef("Completed initiation of service open of type %s on %s", serviceType, this); return IoUtils.nullCancellable(); } finally { if (! ok) pooled.free();
public Cancellable connect(final SocketAddress bindAddress, final SocketAddress destination, final OptionMap connectOptions, final Result<ConnectionHandlerFactory> result, final CallbackHandler callbackHandler, final XnioSsl xnioSsl) throws IllegalArgumentException { context.accept(new ConnectionHandlerFactory() { public ConnectionHandler createInstance(final ConnectionHandlerContext connectionContext) { return new LoopbackConnectionHandler(connectionContext); } }); return nullCancellable(); }
public Cancellable open(final String serviceType, final Result<Channel> result, final OptionMap optionMap) { LocalChannel channel = new LocalChannel(executor, context); try { final OpenListener openListener = context.getServiceOpenListener(serviceType); if (openListener == null) { throw new ServiceNotFoundException("Unable to find service type '" + serviceType + "'"); } context.getConnectionProviderContext().getExecutor().execute(SpiUtils.getServiceOpenTask(channel.getOtherSide(), openListener)); } catch (ServiceNotFoundException e) { result.setException(e); return nullCancellable(); } result.setResult(channel); return nullCancellable(); }
log.tracef("Rejecting service open of type %s on %s due to service type name being too long", serviceType, this); result.setException(new ServiceOpenException("Service type name is too long")); return IoUtils.nullCancellable(); } catch (IOException e) { result.setException(e); return IoUtils.nullCancellable(); return IoUtils.nullCancellable(); log.tracef("Completed initiation of service open of type %s on %s", serviceType, this); return IoUtils.nullCancellable(); } finally { if (! ok) pooled.free();
log.tracef("Rejecting service open of type %s on %s due to service type name being too long", serviceType, this); result.setException(new ServiceOpenException("Service type name is too long")); return IoUtils.nullCancellable(); } catch (IOException e) { result.setException(e); return IoUtils.nullCancellable(); return IoUtils.nullCancellable(); log.tracef("Completed initiation of service open of type %s on %s", serviceType, this); return IoUtils.nullCancellable(); } finally { if (! ok) pooled.free();
} catch (GeneralSecurityException e) { result.setException(sslConfigFailure(e)); return IoUtils.nullCancellable();