Class Bulkhead.BulkheadFuture<T>
java.lang.Object
io.github.resilience4j.bulkhead.Bulkhead.BulkheadFuture<T>
- Type Parameters:
T- of return type
- All Implemented Interfaces:
Future<T>
- Enclosing interface:
Bulkhead
-
Nested Class Summary
Nested classes/interfaces inherited from interface Future
Future.State -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final io.github.resilience4j.core.functions.OnceConsumer<Bulkhead> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Future
exceptionNow, resultNow, state
-
Field Details
-
future
-
onceToBulkhead
-
-
Constructor Details
-
BulkheadFuture
-
-
Method Details
-
cancel
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<T>
-
isDone
-
get
- Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-