ac218b508c2ee3f811976a49e1f8d0be1238c447
[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.rev131103.TransactionId;
11 import org.opendaylight.yangtools.yang.binding.Notification;
12
13 /**
14  * @param <N> type of notification
15  */
16 public interface NotificationComposer<N extends Notification> {
17     
18     /**
19      * @param xid corresponding OF transaction id
20      * @return notification instance
21      */
22     N compose(TransactionId xid);
23 }