CompletableFutureUtil

public class CompletableFutureUtil

Class CompletableFutureUtil. Provides completablefutureutil functionality for the Hytale server.

java.lang.Object > CompletableFutureUtil

Field Summary

out

final CompletableFuture out

Field out.

all

final CompletableFuture all

Field all.

nanosProgress

final long nanosProgress

Field nanosProgress.

listSize

final int listSize

Field listSize.

now

final long now

Field now.

Method Detail

whenComplete

static CompletableFuture whenComplete (@Nonnull final CompletableFuture future, @Nonnull final CompletableFuture callee)

Method whenComplete.

Parameters:
@Nonnull final CompletableFuture future
@Nonnull final CompletableFuture callee

isCanceled

static boolean isCanceled (final Throwable throwable)

Method isCanceled.

Parameters:
final Throwable throwable

_catch

static CompletableFuture _catch (@Nonnull final CompletableFuture future)

Method _catch.

Parameters:
@Nonnull final CompletableFuture future

completionCanceled

static CompletableFuture completionCanceled ()

Method completionCanceled.

joinWithProgress

static void joinWithProgress (@Nonnull final List> list, @Nonnull final ProgressConsumer callback, final int millisSleep, final int millisProgress)

Method joinWithProgress.

Parameters:
@Nonnull final List> list
@Nonnull final ProgressConsumer callback
final int millisSleep
final int millisProgress