List<ProbeClientInvoker> invList = new ArrayList(2);
if (stateful) {
// If this is a stateful probe, we only want invokers in the list that actually can handle stateful
// invokes
for (Map.Entry<Integer, ProbeClientInvoker> entry : entries) {
ProbeClientInvoker invoker = entry.getValue();
if (invoker instanceof StatefulProbeClientInvoker)
invList.add(invoker);
}
} else {
for (Map.Entry<Integer, ProbeClientInvoker> entry : entries) {
ProbeClientInvoker invoker = entry.getValue();
invList.add(invoker);
}
}
invokerList = invList;