package org.opendaylight.controller.cluster.datastore.entityownership.selectionstrategy;
import java.util.Collection;
+import java.util.Map;
/**
* An EntityOwnerSelectionStrategy is to be used by the EntityOwnershipShard to select a new owner from a collection
*
* @return the time in millis owner selection should be delayed
*/
- long selectionDelayInMillis();
+ long getSelectionDelayInMillis();
/**
*
* @param viableCandidates the available candidates from which to choose the new owner
+ * @param statistics contains a snapshot of a mapping between candidate names and the number of entities
+ * owned by that candidate
* @return the new owner
*/
- String newOwner(Collection<String> viableCandidates);
+ String newOwner(Collection<String> viableCandidates, Map<String, Long> statistics);
}