Feature uses features-parent as parent
[groupbasedpolicy.git] / renderers / opflex / src / main / java / org / opendaylight / groupbasedpolicy / renderer / opflex / jsonrpc / ConnectionService.java
1 /*
2  * Copyright (C) 2014 Cisco Systems, Inc.
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  * Authors : Thomas Bachman
9  */
10 package org.opendaylight.groupbasedpolicy.renderer.opflex.jsonrpc;
11
12
13 /**
14  * An interface to provide notifications when connections are
15  * established or closed. The connection notifications
16  * use {@link JsonRpcEndpoint} objects; as connections come and go,
17  * the {@link JsonRpcEndpoint} objects associated with the connections
18  * can be long-lived
19  *
20  * @author tbachman
21  */
22 public interface ConnectionService {
23     /**
24      *
25      * Indication that a new connections was established with
26      * the {@link JsonRpcEndpoint}
27      *
28      * @param endpoint The endpoint that added the connection.
29      */
30     public void addConnection(JsonRpcEndpoint endpoint);
31
32     /**
33      *
34      * Indication that a connections with the {@link JsonRpcEndpoint}
35      * was closed.
36      *
37      * @param endpoint The endpoint that closed the connection.
38      */
39     public void channelClosed(JsonRpcEndpoint endpoint) throws Exception;
40 }