public class NBulkheadCallImpl<T> extends Object implements net.thevpc.nuts.concurrent.NBulkheadCall<T>
| Constructor and Description |
|---|
NBulkheadCallImpl(String id,
net.thevpc.nuts.concurrent.NCallable<T> callable,
net.thevpc.nuts.concurrent.NBulkheadCallStore store,
net.thevpc.nuts.concurrent.NBulkheadCallBackend backend) |
| Modifier and Type | Method and Description |
|---|---|
int |
activeCalls() |
int |
availableSlots() |
T |
call() |
T |
callBlocking() |
T |
callBlocking(net.thevpc.nuts.time.NDuration timeout) |
T |
callOrElse(net.thevpc.nuts.time.NDuration timeout,
net.thevpc.nuts.concurrent.NCallable<T> fallback) |
net.thevpc.nuts.elem.NElement |
describe() |
boolean |
isFull() |
int |
maxConcurrent() |
net.thevpc.nuts.concurrent.NBulkheadCall<T> |
maxConcurrent(int maxConcurrent) |
net.thevpc.nuts.concurrent.NBulkheadCall<T> |
permitExpiry(net.thevpc.nuts.time.NDuration expiry) |
void |
reload() |
net.thevpc.nuts.util.NOptional<T> |
tryCall() |
T |
tryCallOrElse(net.thevpc.nuts.concurrent.NCallable<T> fallback) |
public void reload()
public net.thevpc.nuts.concurrent.NBulkheadCall<T> maxConcurrent(int maxConcurrent)
maxConcurrent in interface net.thevpc.nuts.concurrent.NBulkheadCall<T>public net.thevpc.nuts.concurrent.NBulkheadCall<T> permitExpiry(net.thevpc.nuts.time.NDuration expiry)
permitExpiry in interface net.thevpc.nuts.concurrent.NBulkheadCall<T>public int maxConcurrent()
maxConcurrent in interface net.thevpc.nuts.concurrent.NBulkheadCall<T>public int activeCalls()
activeCalls in interface net.thevpc.nuts.concurrent.NBulkheadCall<T>public int availableSlots()
availableSlots in interface net.thevpc.nuts.concurrent.NBulkheadCall<T>public boolean isFull()
isFull in interface net.thevpc.nuts.concurrent.NBulkheadCall<T>public net.thevpc.nuts.util.NOptional<T> tryCall()
tryCall in interface net.thevpc.nuts.concurrent.NBulkheadCall<T>public T tryCallOrElse(net.thevpc.nuts.concurrent.NCallable<T> fallback)
tryCallOrElse in interface net.thevpc.nuts.concurrent.NBulkheadCall<T>public T callBlocking() throws net.thevpc.nuts.concurrent.NInterruptedException
callBlocking in interface net.thevpc.nuts.concurrent.NBulkheadCall<T>net.thevpc.nuts.concurrent.NInterruptedExceptionpublic T call()
public T callBlocking(net.thevpc.nuts.time.NDuration timeout) throws net.thevpc.nuts.concurrent.NInterruptedException
callBlocking in interface net.thevpc.nuts.concurrent.NBulkheadCall<T>net.thevpc.nuts.concurrent.NInterruptedExceptionpublic T callOrElse(net.thevpc.nuts.time.NDuration timeout, net.thevpc.nuts.concurrent.NCallable<T> fallback) throws net.thevpc.nuts.concurrent.NInterruptedException
callOrElse in interface net.thevpc.nuts.concurrent.NBulkheadCall<T>net.thevpc.nuts.concurrent.NInterruptedExceptionpublic net.thevpc.nuts.elem.NElement describe()
describe in interface net.thevpc.nuts.elem.NDescribableCopyright © 2026 vpc open source initiative. All rights reserved.