本文整理了Java中org.jboss.threads.AsyncFuture.addListener()
方法的一些代码示例,展示了AsyncFuture.addListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AsyncFuture.addListener()
方法的具体详情如下:
包路径:org.jboss.threads.AsyncFuture
类名称:AsyncFuture
方法名:addListener
[英]Add an asynchronous listener to be called when this operation completes.
[中]添加此操作完成时要调用的异步侦听器。
代码示例来源:origin: org.wildfly/wildfly-controller-client
public <A> void addListener(Listener<? super T, A> aListener, A attachment) {
delegate.addListener(aListener, attachment);
}
代码示例来源:origin: wildfly/wildfly-core
public <A> void addListener(Listener<? super T, A> aListener, A attachment) {
delegate.addListener(aListener, attachment);
}
代码示例来源:origin: wildfly/wildfly-core
@Override
public <A> void addListener(final Listener<? super ModelNode, A> listener, A attachment) {
delegate.addListener(convertListener(this, listener), attachment);
}
代码示例来源:origin: org.wildfly.core/wildfly-host-controller
future.addListener(new AsyncFuture.Listener<OperationResponse, TransactionalProtocolClient>() {
@Override
public void handleComplete(AsyncFuture<? extends OperationResponse> ignored, TransactionalProtocolClient attachment) {
代码示例来源:origin: wildfly/wildfly-core
future.addListener(new AsyncFuture.Listener<OperationResponse, TransactionalProtocolClient>() {
@Override
public void handleComplete(AsyncFuture<? extends OperationResponse> ignored, TransactionalProtocolClient attachment) {
内容来源于网络,如有侵权,请联系作者删除!