2 * Copyright (C) 2014 Cisco Systems, Inc.
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
8 * Authors : Thomas Bachman
10 package org.opendaylight.groupbasedpolicy.renderer.opflex.jsonrpc;
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
22 public interface ConnectionService {
25 * Indication that a new connections was established with
26 * the {@link JsonRpcEndpoint}
28 * @param endpoint The endpoint that added the connection.
30 public void addConnection(JsonRpcEndpoint endpoint);
34 * Indication that a connections with the {@link JsonRpcEndpoint}
37 * @param endpoint The endpoint that closed the connection.
39 public void channelClosed(JsonRpcEndpoint endpoint) throws Exception;