blob: 116ac7c166bec232b40169075605fa0698232a38 [file] [log] [blame]
alshabib8c2a8b32015-03-31 16:31:03 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
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/**
21 * Represents a dataplane queue.
22 */
23public class QueueInfo {
24
25 public enum Type {
26 /**
27 * Supports burst and priority as well as min and max rates.
28 */
29 FULL,
30
31 /**
32 * Only support min and max rates.
33 */
34 MINMAX
35 }
36
37 private final UnsignedInteger queueId;
38 private final Type type;
39 private final long minRate;
40 private final long maxRate;
41 private final long burst;
42 private final long priority;
43
44 public QueueInfo(UnsignedInteger queueId, Type type, long minRate,
45 long maxRate, long burst, long priority) {
46 this.queueId = queueId;
47 this.type = type;
48 this.minRate = minRate;
49 this.maxRate = maxRate;
50 this.burst = burst;
51 this.priority = priority;
52 }
53
54 //TODO builder
55 // public static QueueInfoBuilder builder() {}
56}