blob: 12a8cb4dde44089b11743b5392a4c0f710796c7a [file] [log] [blame]
tom8bb16062014-09-12 14:47:46 -07001package org.onlab.onos.net.flow;
2
3/**
4 * Represents a flow rule and its associated accumulated metrics.
5 */
6public interface FlowEntry extends FlowRule {
7
8 /**
9 * Returns the number of milliseconds this flow rule has been applied.
10 *
11 * @return number of millis
12 */
13 long lifeMillis();
14
15 /**
16 * Returns the number of milliseconds this flow rule has been idle.
17 *
18 * @return number of millis
19 */
20 long idleMillis();
21
22 /**
23 * Returns the number of packets this flow rule has matched.
24 *
25 * @return number of packets
26 */
27 long packets();
28
29 /**
30 * Returns the number of bytes this flow rule has matched.
31 *
32 * @return number of bytes
33 */
34 long bytes();
35
36}