Package | Description |
---|---|
com.hazelcast.util |
This package contains classes to support the inner workings of Hazelcast
as well as some backports of newer Java features / data structures to
support older Java versions in a clean and nice way.
|
Modifier and Type | Field and Description |
---|---|
static FutureUtil.ExceptionHandler |
FutureUtil.IGNORE_ALL_EXCEPT_LOG_MEMBER_LEFT
Ignores all exceptions but still logs
MemberLeftException per future and just tries
to finish all of the given ones. |
static FutureUtil.ExceptionHandler |
FutureUtil.IGNORE_ALL_EXCEPTIONS
Ignores all exceptions
|
static FutureUtil.ExceptionHandler |
FutureUtil.RETHROW_ALL_EXCEPT_MEMBER_LEFT
This ExceptionHandler rethrows
ExecutionException s and logs
MemberLeftException s to the log. |
static FutureUtil.ExceptionHandler |
FutureUtil.RETHROW_EVERYTHING
Just rethrows all exceptions
|
static FutureUtil.ExceptionHandler |
FutureUtil.RETHROW_EXECUTION_EXCEPTION
This ExceptionHandler rethrows
ExecutionException s and logs
MemberLeftException s to the log. |
static FutureUtil.ExceptionHandler |
FutureUtil.RETHROW_TRANSACTION_EXCEPTION
Handler for transaction specific rethrown of exceptions.
|
Modifier and Type | Method and Description |
---|---|
static FutureUtil.ExceptionHandler |
FutureUtil.logAllExceptions(ILogger logger,
Level level)
This ExceptionHandler rethrows
ExecutionException s and logs
MemberLeftException s to the log. |
static FutureUtil.ExceptionHandler |
FutureUtil.logAllExceptions(ILogger logger,
String message,
Level level)
This ExceptionHandler rethrows
ExecutionException s and logs
MemberLeftException s to the log. |
static FutureUtil.ExceptionHandler |
FutureUtil.logAllExceptions(Level level)
This ExceptionHandler rethrows
ExecutionException s and logs
MemberLeftException s to the log. |
static FutureUtil.ExceptionHandler |
FutureUtil.logAllExceptions(String message,
Level level)
This ExceptionHandler rethrows
ExecutionException s and logs
MemberLeftException s to the log. |
Modifier and Type | Method and Description |
---|---|
static <V> Collection<V> |
FutureUtil.returnWithDeadline(Collection<Future<V>> futures,
long timeout,
TimeUnit timeUnit,
FutureUtil.ExceptionHandler exceptionHandler) |
static <V> Collection<V> |
FutureUtil.returnWithDeadline(Collection<Future<V>> futures,
long overallTimeout,
TimeUnit overallTimeUnit,
long perFutureTimeout,
TimeUnit perFutureTimeUnit,
FutureUtil.ExceptionHandler exceptionHandler) |
static void |
FutureUtil.waitForever(Collection<? extends Future> futuresToWaitFor,
FutureUtil.ExceptionHandler exceptionHandler) |
static void |
FutureUtil.waitUntilAllRespondedWithDeadline(Collection<? extends Future> futures,
long timeout,
TimeUnit timeUnit,
FutureUtil.ExceptionHandler exceptionHandler) |
static void |
FutureUtil.waitWithDeadline(Collection<? extends Future> futures,
long timeout,
TimeUnit timeUnit,
FutureUtil.ExceptionHandler exceptionHandler) |
static void |
FutureUtil.waitWithDeadline(Collection<? extends Future> futures,
long overallTimeout,
TimeUnit overallTimeUnit,
long perFutureTimeout,
TimeUnit perFutureTimeUnit,
FutureUtil.ExceptionHandler exceptionHandler) |
Copyright © 2018 Hazelcast, Inc.. All rights reserved.