本文整理了Java中org.xnio.IoUtils.nullCancellable()
方法的一些代码示例,展示了IoUtils.nullCancellable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IoUtils.nullCancellable()
方法的具体详情如下:
包路径:org.xnio.IoUtils
类名称:IoUtils
方法名:nullCancellable
[英]Get the null cancellable.
[中]获取可取消的空值。
代码示例来源:origin: wildfly/wildfly
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();
代码示例来源:origin: org.jboss.remoting3/jboss-remoting
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();
}
代码示例来源:origin: org.jboss.remoting3/jboss-remoting
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();
}
代码示例来源:origin: org.jboss.remoting3/jboss-remoting
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();
代码示例来源:origin: org.jboss.eap/wildfly-client-all
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();
代码示例来源:origin: org.jboss.remoting3/jboss-remoting
} catch (GeneralSecurityException e) {
result.setException(sslConfigFailure(e));
return IoUtils.nullCancellable();
内容来源于网络,如有侵权,请联系作者删除!