2 * Copyright (c) 2016 Brocade Communications 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
8 package org.opendaylight.controller.cluster.datastore;
10 import java.util.concurrent.TimeUnit;
11 import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidate;
14 * Interface for a class the publishes data tree notifications.
16 * @author Thomas Pantelis
18 interface ShardDataTreeNotificationPublisher {
19 long PUBLISH_DELAY_THRESHOLD_IN_MS = TimeUnit.MILLISECONDS.convert(1, TimeUnit.SECONDS);
21 void publishChanges(DataTreeCandidate candidate);