Allow passing of delay to the EntityOwnerElectionStrategy
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / entityownership / selectionstrategy / LastCandidateSelectionStrategy.java
index db5d56b9dcb72002d20fa513dae8ec15446b4d71..30c627735730d668b600015b369e606d74c9d2c9 100644 (file)
@@ -12,10 +12,9 @@ import java.util.ArrayList;
 import java.util.Collection;
 import java.util.List;
 
-public class LastCandidateSelectionStrategy implements EntityOwnerSelectionStrategy {
-    @Override
-    public long selectionDelayInMillis() {
-        return 500;
+public class LastCandidateSelectionStrategy extends AbstractEntityOwnerSelectionStrategy {
+    public LastCandidateSelectionStrategy(long selectionDelayInMillis) {
+        super(selectionDelayInMillis);
     }
 
     @Override