X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fentityownership%2Fselectionstrategy%2FEntityOwnerSelectionStrategy.java;fp=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fentityownership%2Fselectionstrategy%2FEntityOwnerSelectionStrategy.java;h=0000000000000000000000000000000000000000;hp=38cfabb18dce0d1efc5536a4b3104941145b847f;hb=f9ee2cce797cf12402dd55c406f3e270d7d2e20d;hpb=44d274e8a4282ef859a35369c563e4963cf2185a 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 deleted file mode 100644 index 38cfabb18d..0000000000 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/selectionstrategy/EntityOwnerSelectionStrategy.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ -package org.opendaylight.controller.cluster.datastore.entityownership.selectionstrategy; - -import java.util.Collection; -import org.eclipse.jdt.annotation.Nullable; - -/** - * An EntityOwnerSelectionStrategy is to be used by the EntityOwnershipShard to select a new owner from a collection - * 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 - */ - long getSelectionDelayInMillis(); - - - /** - * 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 - */ - String newOwner(@Nullable String currentOwner, Collection viableCandidates); -}