21006173f205603d481211db5a733475e50a7ee5
[controller.git] / opendaylight / md-sal / sal-common-api / src / main / java / org / opendaylight / controller / md / sal / common / api / data / DataChangeListener.java
1 /*
2  * Copyright (c) 2013 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 package org.opendaylight.controller.md.sal.common.api.data;
9
10 import java.util.EventListener;
11
12 import org.opendaylight.yangtools.concepts.Path;
13 /**
14  *
15  *
16  * @deprecated Replaced by {@link AsyncDataChangeEvent}
17  */
18 @Deprecated
19 public interface DataChangeListener<P extends Path<P>, D> extends EventListener {
20     /**
21      * Note that this method may be invoked from a shared thread pool, so
22      * implementations SHOULD NOT perform CPU-intensive operations and they
23      * definitely MUST NOT invoke any potentially blocking operations.
24      *
25      * @param change Data Change Event being delivered.
26      **/
27     void onDataChanged(DataChangeEvent<P, D> change);
28 }