X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fentityownership%2Fselectionstrategy%2FEntityOwnerSelectionStrategy.java;h=38899ecc318aad351c2fe6c7369d8491fe6b535d;hb=12fcdfe39aa26dcba7fd3bb4d4c68e3d02e65c51;hp=7cbc07527db878ea458dfa7f8a2bf8517631e982;hpb=bb1891e328feee08ccd29c96034e967f1eeccece;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/selectionstrategy/EntityOwnerSelectionStrategy.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/selectionstrategy/EntityOwnerSelectionStrategy.java index 7cbc07527d..38899ecc31 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/selectionstrategy/EntityOwnerSelectionStrategy.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/selectionstrategy/EntityOwnerSelectionStrategy.java @@ -13,10 +13,11 @@ import javax.annotation.Nullable; /** * An EntityOwnerSelectionStrategy is to be used by the EntityOwnershipShard to select a new owner from a collection - * of candidates + * of candidates. */ public interface EntityOwnerSelectionStrategy { /** + * Returns the time in millis owner selection should be delayed. * * @return the time in millis owner selection should be delayed */ @@ -24,6 +25,8 @@ public interface EntityOwnerSelectionStrategy { /** + * Selects a new owner from the list of viable candidates. + * * @param currentOwner the current owner of the entity if any, null otherwise * @param viableCandidates the available candidates from which to choose the new owner * @return the new owner