2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.controller.cluster.datastore.entityownership.selectionstrategy;
13 public abstract class AbstractEntityOwnerSelectionStrategy implements EntityOwnerSelectionStrategy {
15 private final long selectionDelayInMillis;
16 private final Map<String, Long> initialStatistics;
18 protected AbstractEntityOwnerSelectionStrategy(long selectionDelayInMillis, Map<String, Long> initialStatistics) {
19 this.selectionDelayInMillis = selectionDelayInMillis;
20 this.initialStatistics = initialStatistics;
24 public long getSelectionDelayInMillis() {
25 return selectionDelayInMillis;
28 public Map<String, Long> getInitialStatistics() {
29 return initialStatistics;