Uses of Interface
org.elasticsearch.common.CheckedConsumer
-
Packages that use CheckedConsumer Package Description org.elasticsearch.action org.elasticsearch.action.support org.elasticsearch.client org.elasticsearch.index.reindex org.elasticsearch.rest -
-
Uses of CheckedConsumer in org.elasticsearch.action
Methods in org.elasticsearch.action with parameters of type CheckedConsumer Modifier and Type Method Description voidStepListener. whenComplete(CheckedConsumer<Response,Exception> onResponse, Consumer<Exception> onFailure)Registers the given actions which are called when this step is completed.static <Response> ActionListener<Response>ActionListener. wrap(CheckedConsumer<Response,? extends Exception> onResponse, Consumer<Exception> onFailure)Creates a listener that listens for a response (or failure) and executes the corresponding consumer when the response (or failure) is received.static <T> ActionRunnable<T>ActionRunnable. wrap(ActionListener<T> listener, CheckedConsumer<ActionListener<T>,Exception> consumer) -
Uses of CheckedConsumer in org.elasticsearch.action.support
Methods in org.elasticsearch.action.support with parameters of type CheckedConsumer Modifier and Type Method Description static <T,E extends Exception>
TPlainActionFuture. get(CheckedConsumer<PlainActionFuture<T>,E> e) -
Uses of CheckedConsumer in org.elasticsearch.client
Constructors in org.elasticsearch.client with parameters of type CheckedConsumer Constructor Description RestHighLevelClient(RestClient restClient, CheckedConsumer<RestClient,IOException> doClose, List<NamedXContentRegistry.Entry> namedXContentEntries)Creates aRestHighLevelClientgiven the low levelRestClientthat it should use to perform requests and a list of entries that allow to parse custom response sections added to Elasticsearch through plugins. -
Uses of CheckedConsumer in org.elasticsearch.index.reindex
Methods in org.elasticsearch.index.reindex with parameters of type CheckedConsumer Modifier and Type Method Description static <Response> RejectAwareActionListener<Response>RejectAwareActionListener. wrap(CheckedConsumer<Response,? extends Exception> onResponse, Consumer<Exception> onFailure, Consumer<Exception> onRejection)Similar toActionListener.wrap(CheckedConsumer, Consumer), extended to have handler for onRejection. -
Uses of CheckedConsumer in org.elasticsearch.rest
Subinterfaces of CheckedConsumer in org.elasticsearch.rest Modifier and Type Interface Description protected static interfaceBaseRestHandler.RestChannelConsumerREST requests are handled by preparing a channel consumer that represents the execution of the request against a channel.Methods in org.elasticsearch.rest with parameters of type CheckedConsumer Modifier and Type Method Description voidRestRequest. applyContentParser(CheckedConsumer<XContentParser,IOException> applyParser)If there is any content then callapplyParserwith the parser, otherwise do nothing.voidRestRequest. withContentOrSourceParamParserOrNull(CheckedConsumer<XContentParser,IOException> withParser)Call a consumer with the parser for the contents of this request if it has contents, otherwise with a parser for thesourceparameter if there is one, otherwise withnull.
-