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 |
withFieldMatch(PiFieldMatch fieldMatch)
Adds one field match to this table entry.
|
PiTableEntry.Builder |
withFieldMatches(Collection<PiFieldMatch> fieldMatches)
Adds many field matches to 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 withFieldMatch(PiFieldMatch fieldMatch)
fieldMatch - field matchpublic PiTableEntry.Builder withFieldMatches(Collection<PiFieldMatch> fieldMatches)
fieldMatches - collection of field matchespublic 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()