本文整理了Java中org.elasticsearch.action.ActionListener.toBiConsumer()
方法的一些代码示例,展示了ActionListener.toBiConsumer()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ActionListener.toBiConsumer()
方法的具体详情如下:
包路径:org.elasticsearch.action.ActionListener
类名称:ActionListener
方法名:toBiConsumer
[英]Converts a listener to a BiConsumer for compatibility with the java.util.concurrent.CompletableFutureapi.
[中]将侦听器转换为双消费者,以与java兼容。util。同时发生的CompletableFutureapi。
代码示例来源:origin: org.elasticsearch/elasticsearch
@Override
public void addCloseListener(ActionListener<Void> listener) {
closeContext.addListener(ActionListener.toBiConsumer(listener));
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public void addCloseListener(ActionListener<Void> listener) {
closeContext.whenComplete(ActionListener.toBiConsumer(listener));
}
代码示例来源:origin: com.strapdata.elasticsearch.test/framework
@Override
public void addCloseListener(ActionListener<Void> listener) {
closeFuture.whenComplete(ActionListener.toBiConsumer(listener));
}
代码示例来源:origin: com.strapdata.elasticsearch.test/framework
@Override
public void addCloseListener(ActionListener<Void> listener) {
closeContext.whenComplete(ActionListener.toBiConsumer(listener));
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch
@Override
public void addCloseListener(ActionListener<Void> listener) {
closeContext.whenComplete(ActionListener.toBiConsumer(listener));
}
代码示例来源:origin: com.strapdata.elasticsearch.plugin/transport-netty4
@Override
public void addCloseListener(ActionListener<Void> listener) {
closeContext.whenComplete(ActionListener.toBiConsumer(listener));
}
代码示例来源:origin: com.strapdata.elasticsearch.test/framework
public void addConnectListener(ActionListener<Void> listener) {
connectContext.whenComplete(ActionListener.toBiConsumer(listener));
}
代码示例来源:origin: org.elasticsearch.plugin/transport-netty4-client
@Override
public void addCloseListener(ActionListener<Void> listener) {
closeContext.addListener(ActionListener.toBiConsumer(listener));
}
代码示例来源:origin: org.elasticsearch.plugin/transport-netty4-client
@Override
public void addCloseListener(ActionListener<Void> listener) {
closeContext.addListener(ActionListener.toBiConsumer(listener));
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public void addCloseListener(ActionListener<Void> listener) {
closeContext.addListener(ActionListener.toBiConsumer(listener));
}
代码示例来源:origin: org.elasticsearch.plugin/transport-netty4-client
@Override
public void addConnectListener(ActionListener<Void> listener) {
connectContext.addListener(ActionListener.toBiConsumer(listener));
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch
@Override
public void addCloseListener(ActionListener<Void> listener) {
closeContext.addListener(ActionListener.toBiConsumer(listener));
}
内容来源于网络,如有侵权,请联系作者删除!