public class OfmMutableHello extends OfmHello implements MutableMessage
OfmHello
.length
Modifier and Type | Method and Description |
---|---|
OfmMutableHello |
addElement(HelloElement element)
Adds the specified hello element to this HELLO message.
|
void |
clearXid()
Clears the transaction ID field of this message (sets it to 0).
|
OpenflowMessage |
toImmutable()
Returns an immutable instance of this message.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getElements, toDebugString
decodeHeader, getType, getVersion, getXid, hex, hex, length, 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 OfmMutableHello addElement(HelloElement element)
element
- the element to addInvalidMutableException
- if this instance is no longer writableNullPointerException
- if element is nullCopyright © 2015. All Rights Reserved.