Constructor and Description |
---|
QueuePath(String fullPath)
Constructor creates a MappingQueuePath object using the queue's full path.
|
QueuePath(String parent,
String leaf)
Constructor to create mapping queue path from parent path and leaf name.
|
Modifier and Type | Method and Description |
---|---|
static QueuePath |
createFromQueues(String... parts)
Constructor to create Queue path from queue names.
|
QueuePath |
createNewLeaf(String childQueue)
Creates a new
QueuePath from the current full path as parent, and
the appended child queue path as leaf. |
boolean |
equals(Object o) |
String |
getFullPath()
Getter for the full path of the queue.
|
String |
getLeafName()
Getter for the leaf part of the path.
|
String |
getParent()
Getter for the parent part of the path.
|
boolean |
hasEmptyPart()
Simple helper method to determine if the path contains any empty parts.
|
int |
hashCode() |
boolean |
hasParent()
Convenience getter to check if the queue has a parent path defined.
|
boolean |
isRoot()
Convenience getter to check if the queue is the root queue.
|
Iterator<String> |
iterator()
Returns an iterator of queue path parts, starting from the highest level
(generally root).
|
Iterator<String> |
reverseIterator()
Returns an iterator that provides a way to traverse the queue path from
current queue through its parents.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public QueuePath(String parent, String leaf)
parent
- Parent path of the queueleaf
- Name of the leaf queuepublic QueuePath(String fullPath)
fullPath
- Full path of the queuepublic static QueuePath createFromQueues(String... parts)
parts
- Parts of queue pathpublic boolean hasEmptyPart()
public String getParent()
public String getLeafName()
public String getFullPath()
public boolean hasParent()
public boolean isRoot()
public QueuePath createNewLeaf(String childQueue)
QueuePath
from the current full path as parent, and
the appended child queue path as leaf.childQueue
- path of leaf queuepublic Iterator<String> iterator()
public Iterator<String> reverseIterator()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.