Package io.github.resilience4j.bulkhead
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
This class decorates future with Bulkhead functionality around invocation.
-
Method Summary
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<T>
-
isDone
public boolean 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
-