Jonathan Hart | 552e31f | 2015-02-06 11:11:59 -0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Laboratory |
Jonathan Hart | 552e31f | 2015-02-06 11:11:59 -0800 | [diff] [blame] | 3 | * |
| 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 Hart | 2da1e60 | 2015-02-18 19:09:24 -0800 | [diff] [blame] | 16 | package org.onosproject.routing; |
Jonathan Hart | 552e31f | 2015-02-06 11:11:59 -0800 | [diff] [blame] | 17 | |
| 18 | import java.util.Collection; |
| 19 | |
| 20 | /** |
| 21 | * A component that is able to process Forwarding Information Base (FIB) updates. |
Jonathan Hart | 888eaa0 | 2016-06-22 15:56:21 -0700 | [diff] [blame] | 22 | * |
| 23 | * @deprecated use RouteService instead |
Jonathan Hart | 552e31f | 2015-02-06 11:11:59 -0800 | [diff] [blame] | 24 | */ |
Jonathan Hart | 888eaa0 | 2016-06-22 15:56:21 -0700 | [diff] [blame] | 25 | @Deprecated |
Jonathan Hart | 552e31f | 2015-02-06 11:11:59 -0800 | [diff] [blame] | 26 | public 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 | } |