Refactor AbstractClientHandle a bit
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / entityownership / selectionstrategy / AbstractEntityOwnerSelectionStrategy.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.cluster.datastore.entityownership.selectionstrategy;
10
11 import java.util.Map;
12
13 public abstract class AbstractEntityOwnerSelectionStrategy implements EntityOwnerSelectionStrategy {
14
15     private final long selectionDelayInMillis;
16     private final Map<String, Long> initialStatistics;
17
18     protected AbstractEntityOwnerSelectionStrategy(long selectionDelayInMillis, Map<String, Long> initialStatistics) {
19         this.selectionDelayInMillis = selectionDelayInMillis;
20         this.initialStatistics = initialStatistics;
21     }
22
23     @Override
24     public long getSelectionDelayInMillis() {
25         return selectionDelayInMillis;
26     }
27
28     public Map<String, Long> getInitialStatistics() {
29         return initialStatistics;
30     }
31 }