| Package | Description |
|---|---|
| com.landawn.abacus.http | |
| com.landawn.abacus.http.okhttp | |
| com.landawn.abacus.util |
| Modifier and Type | Method and Description |
|---|---|
ContinuableFuture<okhttp3.Response> |
OkHttpRequest.asyncDelete() |
<T> ContinuableFuture<T> |
OkHttpRequest.asyncDelete(Class<T> resultClass) |
<T> ContinuableFuture<T> |
OkHttpRequest.asyncDelete(Class<T> resultClass,
Executor executor) |
ContinuableFuture<okhttp3.Response> |
OkHttpRequest.asyncDelete(Executor executor) |
<T> ContinuableFuture<T> |
OkHttpRequest.asyncExecute(Class<T> resultClass,
HttpMethod httpMethod) |
<T> ContinuableFuture<T> |
OkHttpRequest.asyncExecute(Class<T> resultClass,
HttpMethod httpMethod,
Executor executor) |
ContinuableFuture<okhttp3.Response> |
OkHttpRequest.asyncExecute(HttpMethod httpMethod) |
ContinuableFuture<okhttp3.Response> |
OkHttpRequest.asyncExecute(HttpMethod httpMethod,
Executor executor) |
ContinuableFuture<okhttp3.Response> |
OkHttpRequest.asyncGet() |
<T> ContinuableFuture<T> |
OkHttpRequest.asyncGet(Class<T> resultClass) |
<T> ContinuableFuture<T> |
OkHttpRequest.asyncGet(Class<T> resultClass,
Executor executor) |
ContinuableFuture<okhttp3.Response> |
OkHttpRequest.asyncGet(Executor executor) |
ContinuableFuture<okhttp3.Response> |
OkHttpRequest.asyncHead() |
ContinuableFuture<okhttp3.Response> |
OkHttpRequest.asyncHead(Executor executor) |
ContinuableFuture<okhttp3.Response> |
OkHttpRequest.asyncPatch() |
<T> ContinuableFuture<T> |
OkHttpRequest.asyncPatch(Class<T> resultClass) |
<T> ContinuableFuture<T> |
OkHttpRequest.asyncPatch(Class<T> resultClass,
Executor executor) |
ContinuableFuture<okhttp3.Response> |
OkHttpRequest.asyncPatch(Executor executor) |
ContinuableFuture<okhttp3.Response> |
OkHttpRequest.asyncPost() |
<T> ContinuableFuture<T> |
OkHttpRequest.asyncPost(Class<T> resultClass) |
<T> ContinuableFuture<T> |
OkHttpRequest.asyncPost(Class<T> resultClass,
Executor executor) |
ContinuableFuture<okhttp3.Response> |
OkHttpRequest.asyncPost(Executor executor) |
ContinuableFuture<okhttp3.Response> |
OkHttpRequest.asyncPut() |
<T> ContinuableFuture<T> |
OkHttpRequest.asyncPut(Class<T> resultClass) |
<T> ContinuableFuture<T> |
OkHttpRequest.asyncPut(Class<T> resultClass,
Executor executor) |
ContinuableFuture<okhttp3.Response> |
OkHttpRequest.asyncPut(Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
static <T> ContinuableFuture<List<T>> |
Futures.allOf(Collection<? extends Future<? extends T>> cfs)
Returns a new Future that is completed when all of
the given Futures complete.
|
static <T> ContinuableFuture<List<T>> |
Futures.allOf(Future<? extends T>... cfs)
Returns a new Future that is completed when all of
the given Futures complete.
|
static <T> ContinuableFuture<T> |
Futures.anyOf(Collection<? extends Future<? extends T>> cfs)
Returns a new Future that, when any of the given Futures complete normally.
|
static <T> ContinuableFuture<T> |
Futures.anyOf(Future<? extends T>... cfs)
Returns a new Future that, when any of the given Futures complete normally.
|
static <R> ContinuableFuture<R> |
N.asyncExecute(Callable<R> command) |
static <R> ContinuableFuture<R> |
N.asyncExecute(Callable<R> command,
Executor executor) |
static <R> ContinuableFuture<R> |
N.asyncExecute(Callable<R> cmd,
int retryTimes,
long retryIntervalInMillis,
BiPredicate<? super R,? super Exception> retryCondition) |
static <R> ContinuableFuture<R> |
N.asyncExecute(Callable<R> command,
long delayInMillis) |
static ContinuableFuture<Void> |
N.asyncExecute(Throwables.Runnable<? extends Exception> command) |
static ContinuableFuture<Void> |
N.asyncExecute(Throwables.Runnable<? extends Exception> command,
Executor executor) |
static ContinuableFuture<Void> |
N.asyncExecute(Throwables.Runnable<? extends Exception> cmd,
int retryTimes,
long retryIntervalInMillis,
Predicate<? super Exception> retryCondition) |
static ContinuableFuture<Void> |
N.asyncExecute(Throwables.Runnable<? extends Exception> command,
long delayInMillis) |
static <T> ContinuableFuture<T> |
ContinuableFuture.call(Callable<T> action) |
static <T> ContinuableFuture<T> |
ContinuableFuture.call(Callable<T> action,
Executor executor) |
<R> ContinuableFuture<R> |
ContinuableFuture.callAfterBoth(ContinuableFuture<?> other,
Callable<R> action)
Call after both.
|
<U,R,E extends Exception> |
ContinuableFuture.callAfterBoth(ContinuableFuture<U> other,
Throwables.BiFunction<? super T,? super U,R,E> action)
Call after both.
|
<U,R,E extends Exception> |
ContinuableFuture.callAfterBoth(ContinuableFuture<U> other,
Throwables.Function<? super Tuple.Tuple4<T,? super Exception,U,? super Exception>,R,E> action)
Call after both.
|
<U,R,E extends Exception> |
ContinuableFuture.callAfterBoth(ContinuableFuture<U> other,
Throwables.QuadFunction<T,? super Exception,U,? super Exception,R,E> action)
Call after both.
|
<R> ContinuableFuture<R> |
ContinuableFuture.callAfterEither(ContinuableFuture<?> other,
Callable<R> action)
Call after either.
|
<R,E extends Exception> |
ContinuableFuture.callAfterEither(ContinuableFuture<? extends T> other,
Throwables.BiFunction<? super T,? super Exception,R,E> action)
Call after either.
|
<R,E extends Exception> |
ContinuableFuture.callAfterEither(ContinuableFuture<? extends T> other,
Throwables.Function<? super T,R,E> action)
Call after either.
|
static <T,R,E extends Exception> |
Futures.combine(Collection<? extends Future<? extends T>> cfs,
Throwables.Function<List<T>,R,E> action) |
static <T1,T2,E extends Exception> |
Futures.combine(Future<? extends T1> cf1,
Future<? extends T2> cf2) |
static <T1,T2,T3,E extends Exception> |
Futures.combine(Future<? extends T1> cf1,
Future<? extends T2> cf2,
Future<? extends T3> cf3) |
static <T1,T2,T3,T4,E extends Exception> |
Futures.combine(Future<? extends T1> cf1,
Future<? extends T2> cf2,
Future<? extends T3> cf3,
Future<? extends T4> cf4) |
static <T1,T2,T3,T4,T5,E extends Exception> |
Futures.combine(Future<? extends T1> cf1,
Future<? extends T2> cf2,
Future<? extends T3> cf3,
Future<? extends T4> cf4,
Future<? extends T5> cf5) |
static <T1,T2,T3,T4,T5,T6,E extends Exception> |
Futures.combine(Future<? extends T1> cf1,
Future<? extends T2> cf2,
Future<? extends T3> cf3,
Future<? extends T4> cf4,
Future<? extends T5> cf5,
Future<? extends T6> cf6) |
static <T1,T2,T3,T4,T5,T6,T7,E extends Exception> |
Futures.combine(Future<? extends T1> cf1,
Future<? extends T2> cf2,
Future<? extends T3> cf3,
Future<? extends T4> cf4,
Future<? extends T5> cf5,
Future<? extends T6> cf6,
Future<? extends T7> cf7) |
static <T1,T2,T3,R,E extends Exception> |
Futures.combine(Future<? extends T1> cf1,
Future<? extends T2> cf2,
Future<? extends T3> cf3,
Throwables.TriFunction<? super T1,? super T2,? super T3,R,E> action) |
static <T1,T2,R,E extends Exception> |
Futures.combine(Future<? extends T1> cf1,
Future<? extends T2> cf2,
Throwables.BiFunction<? super T1,? super T2,R,E> action) |
static <T> ContinuableFuture<T> |
ContinuableFuture.completed(T result) |
static <T,FC extends Collection<? extends Future<? extends T>>,R> |
Futures.compose(FC cfs,
Throwables.Function<? super FC,R,Exception> zipFunctionForGet) |
static <T,FC extends Collection<? extends Future<? extends T>>,R> |
Futures.compose(FC cfs,
Throwables.Function<? super FC,R,Exception> zipFunctionForGet,
Throwables.Function<? super Tuple.Tuple3<FC,Long,TimeUnit>,R,Exception> zipFunctionTimeoutGet) |
static <T1,T2,T3,R> |
Futures.compose(Future<T1> cf1,
Future<T2> cf2,
Future<T3> cf3,
Throwables.TriFunction<? super Future<T1>,? super Future<T2>,? super Future<T3>,R,Exception> zipFunctionForGet) |
static <T1,T2,T3,R> |
Futures.compose(Future<T1> cf1,
Future<T2> cf2,
Future<T3> cf3,
Throwables.TriFunction<? super Future<T1>,? super Future<T2>,? super Future<T3>,R,Exception> zipFunctionForGet,
Throwables.Function<? super Tuple.Tuple5<Future<T1>,Future<T2>,Future<T3>,Long,TimeUnit>,R,Exception> zipFunctionTimeoutGet) |
static <T1,T2,R> ContinuableFuture<R> |
Futures.compose(Future<T1> cf1,
Future<T2> cf2,
Throwables.BiFunction<? super Future<T1>,? super Future<T2>,R,Exception> zipFunctionForGet) |
static <T1,T2,R> ContinuableFuture<R> |
Futures.compose(Future<T1> cf1,
Future<T2> cf2,
Throwables.BiFunction<? super Future<T1>,? super Future<T2>,R,Exception> zipFunctionForGet,
Throwables.Function<? super Tuple.Tuple4<Future<T1>,Future<T2>,Long,TimeUnit>,R,Exception> zipFunctionTimeoutGet) |
<R> ContinuableFuture<R> |
AsyncExecutor.execute(Callable<R> command) |
<R> ContinuableFuture<R> |
AsyncExecutor.execute(Callable<R> action,
int retryTimes,
long retryInterval,
BiPredicate<? super R,? super Exception> retryCondition) |
<R> ContinuableFuture<R> |
AsyncExecutor.execute(Callable<R> command,
Runnable onComplete) |
ContinuableFuture<Void> |
AsyncExecutor.execute(Throwables.Runnable<? extends Exception> command) |
ContinuableFuture<Void> |
AsyncExecutor.execute(Throwables.Runnable<? extends Exception> action,
int retryTimes,
long retryInterval,
Predicate<? super Exception> retryCondition) |
ContinuableFuture<Void> |
AsyncExecutor.execute(Throwables.Runnable<? extends Exception> command,
Runnable onComplete) |
<U,E extends Exception> |
ContinuableFuture.map(Throwables.Function<? super T,U,E> func) |
static <E extends Exception> |
ContinuableFuture.run(Throwables.Runnable<E> action) |
static <E extends Exception> |
ContinuableFuture.run(Throwables.Runnable<E> action,
Executor executor) |
<E extends Exception> |
ContinuableFuture.runAfterBoth(ContinuableFuture<?> other,
Throwables.Runnable<E> action)
Run after both.
|
<U,E extends Exception> |
ContinuableFuture.runAfterBoth(ContinuableFuture<U> other,
Throwables.BiConsumer<? super T,? super U,E> action)
Run after both.
|
<U,E extends Exception> |
ContinuableFuture.runAfterBoth(ContinuableFuture<U> other,
Throwables.Consumer<? super Tuple.Tuple4<T,? super Exception,U,? super Exception>,E> action)
Run after both.
|
<U,E extends Exception> |
ContinuableFuture.runAfterBoth(ContinuableFuture<U> other,
Throwables.QuadConsumer<T,? super Exception,U,? super Exception,E> action)
Run after both.
|
<E extends Exception> |
ContinuableFuture.runAfterEither(ContinuableFuture<?> other,
Throwables.Runnable<E> action)
Run after either.
|
<E extends Exception> |
ContinuableFuture.runAfterEither(ContinuableFuture<? extends T> other,
Throwables.BiConsumer<? super T,? super Exception,E> action)
Run after either.
|
<E extends Exception> |
ContinuableFuture.runAfterEither(ContinuableFuture<? extends T> other,
Throwables.Consumer<? super T,E> action)
Run after either.
|
<R> ContinuableFuture<R> |
ContinuableFuture.thenCall(Callable<R> action) |
<R,E extends Exception> |
ContinuableFuture.thenCall(Throwables.BiFunction<? super T,? super Exception,R,E> action) |
<R,E extends Exception> |
ContinuableFuture.thenCall(Throwables.Function<? super T,R,E> action) |
ContinuableFuture<T> |
ContinuableFuture.thenDelay(long delay,
TimeUnit unit) |
<E extends Exception> |
ContinuableFuture.thenRun(Throwables.BiConsumer<? super T,? super Exception,E> action) |
<E extends Exception> |
ContinuableFuture.thenRun(Throwables.Consumer<? super T,E> action) |
<E extends Exception> |
ContinuableFuture.thenRun(Throwables.Runnable<E> action) |
ContinuableFuture<T> |
ContinuableFuture.thenUse(Executor executor) |
static <T> ContinuableFuture<T> |
ContinuableFuture.wrap(Future<T> future) |
| Modifier and Type | Method and Description |
|---|---|
static <R> List<ContinuableFuture<R>> |
N.asyncExecute(Callable<R>... commands) |
static <R> List<ContinuableFuture<R>> |
N.asyncExecute(Collection<? extends Callable<R>> commands) |
static List<ContinuableFuture<Void>> |
N.asyncExecute(List<? extends Throwables.Runnable<? extends Exception>> commands) |
static List<ContinuableFuture<Void>> |
N.asyncExecute(Throwables.Runnable<? extends Exception>... commands) |
<R> List<ContinuableFuture<R>> |
AsyncExecutor.execute(Callable<R>... commands)
Deprecated.
|
<R> List<ContinuableFuture<R>> |
AsyncExecutor.execute(Collection<? extends Callable<R>> commands) |
List<ContinuableFuture<Void>> |
AsyncExecutor.execute(List<? extends Throwables.Runnable<? extends Exception>> commands) |
List<ContinuableFuture<Void>> |
AsyncExecutor.execute(Throwables.Runnable<? extends Exception>... commands)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
<R> ContinuableFuture<R> |
ContinuableFuture.callAfterBoth(ContinuableFuture<?> other,
Callable<R> action)
Call after both.
|
<U,R,E extends Exception> |
ContinuableFuture.callAfterBoth(ContinuableFuture<U> other,
Throwables.BiFunction<? super T,? super U,R,E> action)
Call after both.
|
<U,R,E extends Exception> |
ContinuableFuture.callAfterBoth(ContinuableFuture<U> other,
Throwables.Function<? super Tuple.Tuple4<T,? super Exception,U,? super Exception>,R,E> action)
Call after both.
|
<U,R,E extends Exception> |
ContinuableFuture.callAfterBoth(ContinuableFuture<U> other,
Throwables.QuadFunction<T,? super Exception,U,? super Exception,R,E> action)
Call after both.
|
<R> ContinuableFuture<R> |
ContinuableFuture.callAfterEither(ContinuableFuture<?> other,
Callable<R> action)
Call after either.
|
<R,E extends Exception> |
ContinuableFuture.callAfterEither(ContinuableFuture<? extends T> other,
Throwables.BiFunction<? super T,? super Exception,R,E> action)
Call after either.
|
<R,E extends Exception> |
ContinuableFuture.callAfterEither(ContinuableFuture<? extends T> other,
Throwables.Function<? super T,R,E> action)
Call after either.
|
<E extends Exception> |
ContinuableFuture.runAfterBoth(ContinuableFuture<?> other,
Throwables.Runnable<E> action)
Run after both.
|
<U,E extends Exception> |
ContinuableFuture.runAfterBoth(ContinuableFuture<U> other,
Throwables.BiConsumer<? super T,? super U,E> action)
Run after both.
|
<U,E extends Exception> |
ContinuableFuture.runAfterBoth(ContinuableFuture<U> other,
Throwables.Consumer<? super Tuple.Tuple4<T,? super Exception,U,? super Exception>,E> action)
Run after both.
|
<U,E extends Exception> |
ContinuableFuture.runAfterBoth(ContinuableFuture<U> other,
Throwables.QuadConsumer<T,? super Exception,U,? super Exception,E> action)
Run after both.
|
<E extends Exception> |
ContinuableFuture.runAfterEither(ContinuableFuture<?> other,
Throwables.Runnable<E> action)
Run after either.
|
<E extends Exception> |
ContinuableFuture.runAfterEither(ContinuableFuture<? extends T> other,
Throwables.BiConsumer<? super T,? super Exception,E> action)
Run after either.
|
<E extends Exception> |
ContinuableFuture.runAfterEither(ContinuableFuture<? extends T> other,
Throwables.Consumer<? super T,E> action)
Run after either.
|
Copyright © 2021. All rights reserved.