public class NBulkheadCallImpl<T> extends Object implements NBulkheadCall<T>
| Constructor and Description |
|---|
NBulkheadCallImpl(String id,
NCallable<T> callable,
NBulkheadCallStore store,
NBulkheadCallBackend backend) |
| Modifier and Type | Method and Description |
|---|---|
T |
call() |
T |
callBlocking() |
T |
callBlocking(NDuration timeout) |
T |
callOrElse(NDuration timeout,
NCallable<T> fallback) |
NElement |
describe() |
int |
getActiveCalls() |
int |
getAvailableSlots() |
int |
getMaxConcurrent() |
boolean |
isFull() |
void |
reload() |
NBulkheadCall<T> |
setMaxConcurrent(int maxConcurrent) |
NBulkheadCall<T> |
setPermitExpiry(NDuration expiry) |
NOptional<T> |
tryCall() |
T |
tryCallOrElse(NCallable<T> fallback) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitof, ofof, redescribepublic NBulkheadCallImpl(String id, NCallable<T> callable, NBulkheadCallStore store, NBulkheadCallBackend backend)
public void reload()
public NBulkheadCall<T> setMaxConcurrent(int maxConcurrent)
setMaxConcurrent in interface NBulkheadCall<T>public NBulkheadCall<T> setPermitExpiry(NDuration expiry)
setPermitExpiry in interface NBulkheadCall<T>public int getMaxConcurrent()
getMaxConcurrent in interface NBulkheadCall<T>public int getActiveCalls()
getActiveCalls in interface NBulkheadCall<T>public int getAvailableSlots()
getAvailableSlots in interface NBulkheadCall<T>public boolean isFull()
isFull in interface NBulkheadCall<T>public NOptional<T> tryCall()
tryCall in interface NBulkheadCall<T>public T tryCallOrElse(NCallable<T> fallback)
tryCallOrElse in interface NBulkheadCall<T>public T callBlocking() throws NInterruptedException
callBlocking in interface NBulkheadCall<T>NInterruptedExceptionpublic T call()
public T callBlocking(NDuration timeout) throws NInterruptedException
callBlocking in interface NBulkheadCall<T>NInterruptedExceptionpublic T callOrElse(NDuration timeout, NCallable<T> fallback) throws NInterruptedException
callOrElse in interface NBulkheadCall<T>NInterruptedExceptionpublic NElement describe()
describe in interface NElementDescribableCopyright © 2025 vpc open source initiative. All rights reserved.