blob: 868fd027dec9ec41e7c74c53dd06a08680926283 [file] [log] [blame]
Jonathan Hart552e31f2015-02-06 11:11:59 -08001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Jonathan Hart552e31f2015-02-06 11:11:59 -08003 *
4 * 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
7 *
8 * 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.
15 */
Jonathan Hart2da1e602015-02-18 19:09:24 -080016package org.onosproject.routing;
Jonathan Hart552e31f2015-02-06 11:11:59 -080017
18import java.util.Collection;
19
20/**
21 * A component that is able to process Forwarding Information Base (FIB) updates.
Jonathan Hart888eaa02016-06-22 15:56:21 -070022 *
23 * @deprecated use RouteService instead
Jonathan Hart552e31f2015-02-06 11:11:59 -080024 */
Jonathan Hart888eaa02016-06-22 15:56:21 -070025@Deprecated
Jonathan Hart552e31f2015-02-06 11:11:59 -080026public interface FibListener {
27
28 /**
29 * Signals the FIB component of changes to the FIB.
30 *
31 * @param updates FIB updates of the UDPATE type
32 * @param withdraws FIB updates of the WITHDRAW type
33 */
34 // TODO this interface should use only one collection when we have the new
35 // intent key API
36 void update(Collection<FibUpdate> updates, Collection<FibUpdate> withdraws);
37
38}