Top Fields Constructors Methods
io.vertx.core.spi.cluster.impl.selector

pack-priv Class SelectorEntry

extends Object
Class Inheritance
Imports
io.vertx.core.Promise, java.util.ArrayList, .HashMap, .List, .Map

Author
Thomas Segismont

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final RoundRobinSelector
pack-priv final Promise<RoundRobinSelector>

Constructor Summary

AccessConstructor and Description
pack-priv
private
SelectorEntry(RoundRobinSelector selector, Promise<RoundRobinSelector> selectorPromise, int counter)

Method Summary

Modifier and TypeMethod and Description
private Map<String, Weight>
pack-priv SelectorEntry
data(List<String> nodeIds)

pack-priv SelectorEntry
private boolean
pack-priv boolean
pack-priv boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

counterback to summary
pack-priv final int counter
selectorback to summary
pack-priv final RoundRobinSelector selector
selectorPromiseback to summary
pack-priv final Promise<RoundRobinSelector> selectorPromise

Constructor Detail

SelectorEntryback to summary
pack-priv SelectorEntry()
SelectorEntryback to summary
private SelectorEntry(RoundRobinSelector selector, Promise<RoundRobinSelector> selectorPromise, int counter)

Method Detail

computeWeightsback to summary
private Map<String, Weight> computeWeights(List<String> nodeIds)
databack to summary
pack-priv SelectorEntry data(List<String> nodeIds)
incrementback to summary
pack-priv SelectorEntry increment()
isEvenlyDistributedback to summary
private boolean isEvenlyDistributed(Map<String, Weight> weights)
isNotReadyback to summary
pack-priv boolean isNotReady()
shouldInitializeback to summary
pack-priv boolean shouldInitialize()