public class WorkBalancerStrategyContextImpl extends Object implements net.thevpc.nuts.concurrent.NWorkBalancerStrategyContext
| Constructor and Description |
|---|
WorkBalancerStrategyContextImpl(net.thevpc.nuts.concurrent.NWorkBalancerModel model,
NWorkBalancerImpl<?> workBalancer) |
| 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.elem.NElement> |
getSharedVar(String name) |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.concurrent.NWorkBalancerWorkerLoad> |
getWorkerLoad(String workerName) |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.elem.NElement> |
getWorkerVar(String workerName,
String name) |
Map<String,net.thevpc.nuts.elem.NElement> |
options() |
net.thevpc.nuts.concurrent.NWorkBalancerStrategyContext |
setSharedVar(String name,
net.thevpc.nuts.elem.NElement value) |
net.thevpc.nuts.concurrent.NWorkBalancerStrategyContext |
setWorkerVar(String workerName,
String name,
net.thevpc.nuts.elem.NElement value) |
Map<String,net.thevpc.nuts.concurrent.NWorkBalancerWorkerLoad> |
workerLoads() |
List<net.thevpc.nuts.concurrent.NWorkBalancerWorker> |
workers() |
public WorkBalancerStrategyContextImpl(net.thevpc.nuts.concurrent.NWorkBalancerModel model,
NWorkBalancerImpl<?> workBalancer)
public List<net.thevpc.nuts.concurrent.NWorkBalancerWorker> workers()
workers in interface net.thevpc.nuts.concurrent.NWorkBalancerStrategyContextpublic net.thevpc.nuts.util.NOptional<net.thevpc.nuts.concurrent.NWorkBalancerWorkerLoad> getWorkerLoad(String workerName)
getWorkerLoad in interface net.thevpc.nuts.concurrent.NWorkBalancerStrategyContextpublic Map<String,net.thevpc.nuts.concurrent.NWorkBalancerWorkerLoad> workerLoads()
workerLoads in interface net.thevpc.nuts.concurrent.NWorkBalancerStrategyContextpublic net.thevpc.nuts.util.NOptional<net.thevpc.nuts.elem.NElement> getOption(String name)
getOption in interface net.thevpc.nuts.concurrent.NWorkBalancerStrategyContextpublic Map<String,net.thevpc.nuts.elem.NElement> options()
options in interface net.thevpc.nuts.concurrent.NWorkBalancerStrategyContextpublic net.thevpc.nuts.util.NOptional<net.thevpc.nuts.elem.NElement> getWorkerVar(String workerName, String name)
getWorkerVar in interface net.thevpc.nuts.concurrent.NWorkBalancerStrategyContextpublic net.thevpc.nuts.util.NOptional<net.thevpc.nuts.elem.NElement> getSharedVar(String name)
getSharedVar in interface net.thevpc.nuts.concurrent.NWorkBalancerStrategyContextpublic net.thevpc.nuts.concurrent.NWorkBalancerStrategyContext setWorkerVar(String workerName, String name, net.thevpc.nuts.elem.NElement value)
setWorkerVar in interface net.thevpc.nuts.concurrent.NWorkBalancerStrategyContextpublic net.thevpc.nuts.concurrent.NWorkBalancerStrategyContext setSharedVar(String name, net.thevpc.nuts.elem.NElement value)
setSharedVar in interface net.thevpc.nuts.concurrent.NWorkBalancerStrategyContextCopyright © 2026 vpc open source initiative. All rights reserved.