blob: a18414667020f0dc9f8847b8e79057a07492a352 [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.
22 */
23public interface FibListener {
24
25 /**
26 * Signals the FIB component of changes to the FIB.
27 *
28 * @param updates FIB updates of the UDPATE type
29 * @param withdraws FIB updates of the WITHDRAW type
30 */
31 // TODO this interface should use only one collection when we have the new
32 // intent key API
33 void update(Collection<FibUpdate> updates, Collection<FibUpdate> withdraws);
34
35}