public class OfmMutableTableMod extends OfmTableMod implements MutableMessage
OfmTableMod
.length
Modifier and Type | Method and Description |
---|---|
void |
clearXid()
Clears the transaction ID field of this message (sets it to 0).
|
OfmMutableTableMod |
config(Set<TableConfig> flags)
Sets the table configuration flags; Since 1.1; Deprecated in 1.3.
|
OfmMutableTableMod |
tableId(TableId tableId)
Sets the table id; Since 1.1.
|
OpenflowMessage |
toImmutable()
Returns an immutable instance of this message.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getConfig, getTableId
decodeHeader, getType, getVersion, getXid, hex, hex, length, toDebugString, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersion, toDebugString
public void clearXid()
MutableMessage
clearXid
in interface MutableMessage
public OpenflowMessage toImmutable()
MutableMessage
It is expected that the reference to this mutable message will be
dropped. Note that all method calls invoked on a
MutableMessage
after toImmutable()
has been invoked
will result in an InvalidMutableException
being thrown.
toImmutable
in interface MutableMessage
public boolean writable()
MutableObject
#toImmutable()
method (defined on a sub-interface)
has not yet been invoked.writable
in interface MutableObject
public String toString()
toString
in class OfmTableMod
public OfmMutableTableMod tableId(TableId tableId)
Note the special values:
TableId.MAX
: the maximum allowable value
TableId.ALL
: represents all tables
tableId
- the table idInvalidMutableException
- if this instance is no longer writableVersionMismatchException
- if version < 1.1NullPointerException
- if tableId is nullpublic OfmMutableTableMod config(Set<TableConfig> flags)
Since 1.3, the table config flags are reserved for future use.
flags
- the table configuration flags to setInvalidMutableException
- if this instance is no longer writableVersionMismatchException
- if version is not 1.1 or 1.2Copyright © 2016. All Rights Reserved.