blob: 51837126116e9a82a89f761ab98a35ee0529b0ab [file] [log] [blame]
Thomas Vachuska781d18b2014-10-27 10:31:25 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Thomas Vachuska781d18b2014-10-27 10:31:25 -07003 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07004 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
Thomas Vachuska781d18b2014-10-27 10:31:25 -07007 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07008 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
Thomas Vachuska781d18b2014-10-27 10:31:25 -070015 */
Jonathan Hart2da1e602015-02-18 19:09:24 -080016package org.onosproject.routing;
Jonathan Hart335ef462014-10-16 08:20:46 -070017
Pavlin Radoslavov248c2ae2014-12-02 09:51:25 -080018import java.util.Collection;
19
Jonathan Hart335ef462014-10-16 08:20:46 -070020/**
21 * An interface to receive route updates from route providers.
Jonathan Hart92ca5d32016-04-14 18:05:52 -070022 *
23 * @deprecated in Goldeneye. Use RouteService instead.
Jonathan Hart335ef462014-10-16 08:20:46 -070024 */
Jonathan Hart92ca5d32016-04-14 18:05:52 -070025@Deprecated
Jonathan Hart335ef462014-10-16 08:20:46 -070026public interface RouteListener {
27 /**
28 * Receives a route update from a route provider.
29 *
Pavlin Radoslavov248c2ae2014-12-02 09:51:25 -080030 * @param routeUpdates the collection with updated route information
Jonathan Hart335ef462014-10-16 08:20:46 -070031 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070032 void update(Collection<RouteUpdate> routeUpdates);
Jonathan Hart335ef462014-10-16 08:20:46 -070033}