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%2FAbstractEntityOwnerSelectionStrategy.java;fp=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fentityownership%2Fselectionstrategy%2FAbstractEntityOwnerSelectionStrategy.java;h=df709c1a95ff05cebc8408cba1a12feb970d0a0c;hb=eb359c6eaee33eb91ac26ac8a3439be4ae1a974a;hp=0000000000000000000000000000000000000000;hpb=e9cceae4b6689c7c3880b441c13d35cbe4b13ce0;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/selectionstrategy/AbstractEntityOwnerSelectionStrategy.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/selectionstrategy/AbstractEntityOwnerSelectionStrategy.java new file mode 100644 index 0000000000..df709c1a95 --- /dev/null +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/selectionstrategy/AbstractEntityOwnerSelectionStrategy.java @@ -0,0 +1,23 @@ +/* + * 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; + +public abstract class AbstractEntityOwnerSelectionStrategy implements EntityOwnerSelectionStrategy { + + private final long selectionDelayInMillis; + + protected AbstractEntityOwnerSelectionStrategy(long selectionDelayInMillis) { + this.selectionDelayInMillis = selectionDelayInMillis; + } + + @Override + public long getSelectionDelayInMillis() { + return selectionDelayInMillis; + } +}