tom | 613d814 | 2014-09-11 15:09:37 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.packet; |
| 2 | |
alshabib | 369d294 | 2014-09-12 17:59:35 -0700 | [diff] [blame^] | 3 | |
tom | 613d814 | 2014-09-11 15:09:37 -0700 | [diff] [blame] | 4 | /** |
| 5 | * Abstraction of an inbound packet processor. |
| 6 | */ |
| 7 | public interface PacketProcessor { |
| 8 | |
alshabib | 369d294 | 2014-09-12 17:59:35 -0700 | [diff] [blame^] | 9 | public static final int ADVISOR_MAX = Integer.MAX_VALUE / 3; |
| 10 | public static final int DIRECTOR_MAX = (Integer.MAX_VALUE / 3) * 2; |
| 11 | public static final int OBSERVER_MAX = Integer.MAX_VALUE; |
| 12 | |
tom | 613d814 | 2014-09-11 15:09:37 -0700 | [diff] [blame] | 13 | /** |
| 14 | * Processes the inbound packet as specified in the given context. |
| 15 | * |
| 16 | * @param context packet processing context |
| 17 | */ |
| 18 | void process(PacketContext context); |
| 19 | |
| 20 | } |