mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
Remove HighLevelRestClient from CCSDuelIT (#102222)
This commit is contained in:
parent
5a01af3600
commit
c579ab2d4a
2 changed files with 370 additions and 383 deletions
|
@ -8,12 +8,20 @@
|
|||
|
||||
package org.elasticsearch.core;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* A {@link Consumer}-like interface which allows throwing checked exceptions.
|
||||
* A {@link java.util.function.Consumer}-like interface which allows throwing checked exceptions.
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface CheckedConsumer<T, E extends Exception> {
|
||||
void accept(T t) throws E;
|
||||
|
||||
default CheckedConsumer<T, E> andThen(CheckedConsumer<? super T, E> after) throws E {
|
||||
Objects.requireNonNull(after);
|
||||
return (T t) -> {
|
||||
accept(t);
|
||||
after.accept(t);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue