public interface StoredFlowEntry extends FlowEntry
FlowEntry.FlowEntryState, FlowEntry.FlowLiveType
FlowRule.Builder, FlowRule.FlowRemoveReason
DEFAULT_TABLE, MAX_PRIORITY, MAX_TIMEOUT, MIN_PRIORITY
Modifier and Type | Method and Description |
---|---|
void |
setBytes(long bytes)
Number of bytes seen by this rule.
|
void |
setLastSeen()
Sets the last active epoch time.
|
void |
setLife(long lifeSecs)
Sets how long this entry has been entered in the system.
|
void |
setLife(long life,
TimeUnit timeUnit)
Sets how long this entry has been entered in the system.
|
void |
setLiveType(FlowEntry.FlowLiveType liveType)
Sets the flow live type,
i.e., IMMEDIATE, SHORT, MID, LONG.
|
void |
setPackets(long packets)
Number of packets seen by this entry.
|
void |
setState(FlowEntry.FlowEntryState newState)
Sets the new state for this entry.
|
void setLastSeen()
void setState(FlowEntry.FlowEntryState newState)
newState
- new flow entry state.void setLife(long lifeSecs)
lifeSecs
- secondsvoid setLife(long life, TimeUnit timeUnit)
life
- timetimeUnit
- unit of timevoid setLiveType(FlowEntry.FlowLiveType liveType)
liveType
- flow live typevoid setPackets(long packets)
packets
- a long valuevoid setBytes(long bytes)
bytes
- a long value