Package com.github.sonus21.rqueue.core
Class EndpointRegistry
java.lang.Object
com.github.sonus21.rqueue.core.EndpointRegistry
Stores all registered queue details
this stores all the queue details mapped from RqueueListener.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddelete()static QueueDetailGet QueueDetail for the given queue.static QueueDetailGet QueueDetail for the given queue, with prioritystatic intstatic List<QueueDetail>static Map<String,QueueDetail> static intstatic voidregister(QueueDetail queueDetail) static StringtoStr()
-
Method Details
-
get
Get QueueDetail for the given queue. If queue is having priority than it should be called withPriorityUtils.getQueueNameForPriority(String, String).- Parameters:
queueName- queue name- Returns:
- queue detail
- Throws:
QueueDoesNotExist- this error is thrown when queue is not registered.- See Also:
-
get
Get QueueDetail for the given queue, with priority- Parameters:
queueName- queue namepriority- priority of this queue like critical, high- Returns:
- queue detail
- Throws:
QueueDoesNotExist- this error is thrown when queue is not registered.
-
register
-
delete
public static void delete() -
getActiveQueues
-
getActiveQueueDetails
-
getActiveQueueMap
-
toStr
-
getActiveQueueCount
public static int getActiveQueueCount() -
getRegisteredQueueCount
public static int getRegisteredQueueCount()
-