BUG-5280: switch transactionIdentifier
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / ShardDataTreeNotificationPublisher.java
1 /*
2  * Copyright (c) 2016 Brocade Communications 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 package org.opendaylight.controller.cluster.datastore;
9
10 import java.util.concurrent.TimeUnit;
11 import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidate;
12
13 /**
14  * Interface for a class the publishes data tree notifications.
15  *
16  * @author Thomas Pantelis
17  */
18 interface ShardDataTreeNotificationPublisher {
19     long PUBLISH_DELAY_THRESHOLD_IN_MS = TimeUnit.MILLISECONDS.convert(1, TimeUnit.SECONDS);
20
21     void publishChanges(final DataTreeCandidate candidate, String logContext);
22 }