blob: dc09219a617d4fe9b989873912d800c9900b943c [file] [log] [blame]
alshabib42947782015-03-31 14:59:06 -07001/*
2 * Copyright 2015 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 */
16package org.onosproject.net.packet;
17
18import org.onosproject.core.ApplicationId;
alshabib42947782015-03-31 14:59:06 -070019import org.onosproject.net.flow.TrafficSelector;
20
21/**
22 * Represents a packet request made to devices.
23 */
24public interface PacketRequest {
25
26 /**
27 * Obtain the traffic selector.
Thomas Vachuska27bee092015-06-23 19:03:10 -070028 *
alshabib42947782015-03-31 14:59:06 -070029 * @return a traffic selector
30 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070031 TrafficSelector selector();
alshabib42947782015-03-31 14:59:06 -070032
33 /**
34 * Obtain the priority.
Thomas Vachuska27bee092015-06-23 19:03:10 -070035 *
alshabib42947782015-03-31 14:59:06 -070036 * @return a PacketPriority
37 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070038 PacketPriority priority();
alshabib42947782015-03-31 14:59:06 -070039
40 /**
41 * Obtain the application id.
Thomas Vachuska27bee092015-06-23 19:03:10 -070042 *
alshabib42947782015-03-31 14:59:06 -070043 * @return an application id
44 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070045 ApplicationId appId();
alshabib42947782015-03-31 14:59:06 -070046
alshabib42947782015-03-31 14:59:06 -070047}