public class NWorkBalancerImpl<T> extends Object implements net.thevpc.nuts.concurrent.NWorkBalancer<T>
| Constructor and Description |
|---|
NWorkBalancerImpl(net.thevpc.nuts.concurrent.NWorkBalancerModel model,
NWorkBalancerFactoryImpl factory) |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.elem.NElement> |
getOption(String name) |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.concurrent.NWorkBalancerWorkerLoad> |
getWorkerLoad(String workerName) |
boolean |
isRunning() |
net.thevpc.nuts.concurrent.NCallable<T> |
of(String name,
net.thevpc.nuts.concurrent.NWorkBalancerJob<T> job) |
Map<String,net.thevpc.nuts.elem.NElement> |
options() |
List<net.thevpc.nuts.concurrent.NWorkBalancerRunningJob> |
runningJobs() |
int |
runningJobsCount() |
Map<String,net.thevpc.nuts.concurrent.NWorkBalancerWorkerLoad> |
workerLoads() |
List<net.thevpc.nuts.concurrent.NWorkBalancerWorker> |
workers() |
public NWorkBalancerImpl(net.thevpc.nuts.concurrent.NWorkBalancerModel model,
NWorkBalancerFactoryImpl factory)
public net.thevpc.nuts.concurrent.NCallable<T> of(String name, net.thevpc.nuts.concurrent.NWorkBalancerJob<T> job)
of in interface net.thevpc.nuts.concurrent.NWorkBalancer<T>public List<net.thevpc.nuts.concurrent.NWorkBalancerRunningJob> runningJobs()
runningJobs in interface net.thevpc.nuts.concurrent.NWorkBalancer<T>public boolean isRunning()
isRunning in interface net.thevpc.nuts.concurrent.NWorkBalancer<T>public int runningJobsCount()
runningJobsCount in interface net.thevpc.nuts.concurrent.NWorkBalancer<T>public List<net.thevpc.nuts.concurrent.NWorkBalancerWorker> workers()
workers in interface net.thevpc.nuts.concurrent.NWorkBalancer<T>public net.thevpc.nuts.util.NOptional<net.thevpc.nuts.concurrent.NWorkBalancerWorkerLoad> getWorkerLoad(String workerName)
getWorkerLoad in interface net.thevpc.nuts.concurrent.NWorkBalancer<T>public Map<String,net.thevpc.nuts.concurrent.NWorkBalancerWorkerLoad> workerLoads()
workerLoads in interface net.thevpc.nuts.concurrent.NWorkBalancer<T>public net.thevpc.nuts.util.NOptional<net.thevpc.nuts.elem.NElement> getOption(String name)
getOption in interface net.thevpc.nuts.concurrent.NWorkBalancer<T>Copyright © 2026 vpc open source initiative. All rights reserved.