public class MutableQueue extends Queue implements MutableStructure
Queue
.parseErrorCause, version
Modifier and Type | Method and Description |
---|---|
MutableQueue |
addProperty(QueueProperty property)
Adds a property to this queue; Since 1.0.
|
MutableQueue |
id(QueueId id)
Sets the id of this queue; Since 1.0.
|
MutableQueue |
port(BigPortNumber port)
Sets the port number for this queue; Since 1.2.
|
OpenflowStructure |
toImmutable()
Returns an immutable instance of this structure.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getVersion, hex, hex, incomplete, parseErrorCause, toDebugString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersion, toDebugString
public OpenflowStructure toImmutable()
MutableStructure
It is expected that the reference to this mutable structure will be
dropped. Note that all method calls invoked on a
MutableStructure
after toImmutable()
has been invoked
will result in an InvalidMutableException
being thrown.
toImmutable
in interface MutableStructure
public boolean writable()
MutableObject
#toImmutable()
method (defined on a sub-interface)
has not yet been invoked.writable
in interface MutableObject
public MutableQueue id(QueueId id)
id
- the queue idInvalidMutableException
- if this instance is no longer writableNullPointerException
- if id is nullpublic MutableQueue port(BigPortNumber port)
port
- the port numberInvalidMutableException
- if this instance is no longer writableVersionMismatchException
- if version is < 1.2NullPointerException
- if port is nullpublic MutableQueue addProperty(QueueProperty property)
property
- the property to addInvalidMutableException
- if this instance is no longer writableNullPointerException
- if property is nullVersionMismatchException
- if property is not supported for the
given versionCopyright © 2015. All Rights Reserved.