blob: 8a92b98aa5f5478b715f13f69a2b86479cad16d9 [file] [log] [blame]
alshabib8c2a8b32015-03-31 16:31:03 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
alshabib8c2a8b32015-03-31 16:31:03 -07003 *
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.behaviour;
17
18import com.google.common.primitives.UnsignedInteger;
19
20/**
Frank Wange11a98d2016-10-26 17:04:03 +080021 * @deprecated in Junco Release (1.9.1), Use QueueDescription instead
22 * {@link org.onosproject.net.behaviour.QueueDescription}
alshabib8c2a8b32015-03-31 16:31:03 -070023 */
Frank Wange11a98d2016-10-26 17:04:03 +080024@Deprecated
alshabib8c2a8b32015-03-31 16:31:03 -070025public class QueueInfo {
26
27 public enum Type {
28 /**
29 * Supports burst and priority as well as min and max rates.
30 */
31 FULL,
32
33 /**
34 * Only support min and max rates.
35 */
36 MINMAX
37 }
38
39 private final UnsignedInteger queueId;
40 private final Type type;
41 private final long minRate;
42 private final long maxRate;
43 private final long burst;
44 private final long priority;
45
46 public QueueInfo(UnsignedInteger queueId, Type type, long minRate,
47 long maxRate, long burst, long priority) {
48 this.queueId = queueId;
49 this.type = type;
50 this.minRate = minRate;
51 this.maxRate = maxRate;
52 this.burst = burst;
53 this.priority = priority;
54 }
55
56 //TODO builder
57 // public static QueueInfoBuilder builder() {}
58}