Merge "Bug 8873 - Bundle based reconciliation to enable bundling of messages"
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / md / core / sal / NotificationComposer.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.openflowplugin.api.openflow.md.core.sal;
9
10 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.TransactionId;
11 import org.opendaylight.yangtools.yang.binding.Notification;
12
13 /**
14  * Notification composer.
15  * @param <N> type of notification
16  */
17 public interface NotificationComposer<N extends Notification> {
18
19     /**
20      * Compose.
21      * @param xid corresponding OF transaction id
22      * @return notification instance
23      */
24     N compose(TransactionId xid);
25 }