Bug 1459-2 - Re-organize mdsal-binding2-spec
[mdsal.git] / binding2 / mdsal-binding2-spec / src / main / java / org / opendaylight / mdsal / binding / javav2 / spec / base / Action.java
1 /*
2  * Copyright (c) 2017 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
9 package org.opendaylight.mdsal.binding.javav2.spec.base;
10
11 /**
12  *  The "action" statement is used to define an operation connected to a
13  *  specific container or list data node. The "action" statement defines
14  *  an action node in the schema tree. Under the action node, a schema node
15  *  with the name "input" and a schema node with the name "output" are also
16  *  defined. The nodes "input" and "output" are defined in the module’s namespace.
17  */
18 public interface Action<I extends Input<I> & Instantiable<I>, O extends Output<O> & Instantiable<O>> {
19
20     void invoke(I input, RpcCallback<O> callback);
21 }