2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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 package org.opendaylight.controller.md.sal.common.api.routing;
14 * Event representing change in RPC routing table.
17 * @param <C> Type, which is used to represent Routing context.
18 * @param <P> Type of data tree path, which is used to identify route.
21 public interface RouteChange<C, P> {
24 * Returns a map of removed routes in associated routing contexts.
27 * This map represents routes, which were withdrawn from broker local
28 * routing table and broker may need to forward RPC to other broker
29 * in order to process RPC request.
31 * @return Map of contexts and removed routes
33 Map<C,Set<P>> getRemovals();
36 * Returns a map of announced routes in associated routing contexts.
39 * This map represents routes, which were announced by broker
40 * and are present in broker's local routing table. This routes
41 * are processed by implementations which are registered
42 * to originating broker.
44 * @return Map of contexts and announced routes
46 Map<C, Set<P>> getAnnouncements();