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;
13 * Event representing change in RPC routing table.
16 * @param <C> Type, which is used to represent Routing context.
17 * @param <P> Type of data tree path, which is used to identify route.
19 public interface RouteChange<C,P> {
23 * Returns a map of removed routes in associated routing contexts.
25 * This map represents routes, which were withdrawn from broker local
26 * routing table and broker may need to forward RPC to other broker
27 * in order to process RPC request.
29 * @return Map of contexts and removed routes
31 Map<C,Set<P>> getRemovals();
34 * Returns a map of announced routes in associated routing contexts.
36 * This map represents routes, which were announced by broker
37 * and are present in broker's local routing table. This routes
38 * are processed by implementations which are registered
39 * to originating broker.
41 * @return Map of contexts and announced routes
43 Map<C,Set<P>> getAnnouncements();