Jian Li | 7ccc3a8 | 2016-12-09 01:30:56 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016-present Open Networking Laboratory |
| 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 | */ |
| 16 | package org.onosproject.lisp.ctl; |
| 17 | |
| 18 | import org.onosproject.lisp.msg.protocols.LispMessage; |
| 19 | |
| 20 | /** |
| 21 | * Notifies providers about all LISP messages. |
| 22 | */ |
| 23 | public interface LispMessageListener { |
| 24 | |
| 25 | /** |
| 26 | * Handles all incoming LISP messages. |
| 27 | * |
| 28 | * @param routerId the router where the message generated |
| 29 | * @param msg raw LISP message |
| 30 | */ |
| 31 | void handleIncomingMessage(LispRouterId routerId, LispMessage msg); |
| 32 | |
| 33 | /** |
| 34 | * Handles all outgoing LISP messages. |
| 35 | * |
| 36 | * @param routerId the router where the message to be sent |
| 37 | * @param msg raw LISP message |
| 38 | */ |
| 39 | void handleOutgoingMessage(LispRouterId routerId, LispMessage msg); |
| 40 | } |