public static final class PiTableEntry.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
PiTableEntry |
build()
Builds the table entry.
|
PiTableEntry.Builder |
forTable(PiTableId tableId)
Sets the table identifier for this entry.
|
PiTableEntry.Builder |
withAction(PiTableAction tableAction)
Sets the action of this table entry.
|
PiTableEntry.Builder |
withCookie(long cookie)
Sets the cookie, i.e.
|
PiTableEntry.Builder |
withMatchKey(PiMatchKey matchKey)
Sets the match key of this table entry.
|
PiTableEntry.Builder |
withPriority(int priority)
Sets the priority of this table entry.
|
PiTableEntry.Builder |
withTimeout(double seconds)
Sets the timeout of this table entry.
|
public PiTableEntry.Builder forTable(PiTableId tableId)
tableId
- table identifierpublic PiTableEntry.Builder withAction(PiTableAction tableAction)
tableAction
- table actionpublic PiTableEntry.Builder withMatchKey(PiMatchKey matchKey)
matchKey
- match keypublic PiTableEntry.Builder withCookie(long cookie)
cookie
- cookiepublic PiTableEntry.Builder withPriority(int priority)
priority
- prioritypublic PiTableEntry.Builder withTimeout(double seconds)
seconds
- timeout in secondspublic PiTableEntry build()