public static final class PiTableEntry.Builder extends 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 |
withCounterCellData(PiCounterCellData data)
Sets the counter cell data of this table entry.
|
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)
PiMatchKey.EMPTY, i.e. any match.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.Builder withCounterCellData(PiCounterCellData data)
data - counter cell datapublic PiTableEntry build()