public class OfmMutableRoleRequest extends OfmRoleRequest implements MutableMessage
OfmRoleRequest
.length
Modifier and Type | Method and Description |
---|---|
void |
clearXid()
Clears the transaction ID field of this message (sets it to 0).
|
OfmMutableRoleRequest |
generationId(long generationId)
Sets the generation ID; Since 1.2.
|
OfmMutableRoleRequest |
role(ControllerRole role)
Sets the controller role; Since 1.2.
|
OpenflowMessage |
toImmutable()
Returns an immutable instance of this message.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getGenerationId, getRole, toDebugString, validate
decodeHeader, getType, getVersion, getXid, hex, hex, length
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 OfmMutableRoleRequest role(ControllerRole role)
role
- the controller roleInvalidMutableException
- if this instance is no longer writableNullPointerException
- if role is nullVersionMismatchException
- if version < 1.2.public OfmMutableRoleRequest generationId(long generationId)
generationId
- the generation IDInvalidMutableException
- if this instance is no longer writableVersionMismatchException
- if version < 1.2.Copyright © 2016. All Rights Reserved.