Package gov.usgs.earthquake.util
Class NotificationEventBlockingQueue
java.lang.Object
gov.usgs.earthquake.util.RoundRobinQueue<T>
gov.usgs.earthquake.util.RoundRobinBlockingQueue<NotificationEvent>
gov.usgs.earthquake.util.NotificationEventBlockingQueue
- All Implemented Interfaces:
- Iterable<NotificationEvent>,- Collection<NotificationEvent>,- BlockingQueue<NotificationEvent>,- Queue<NotificationEvent>
Preliminary implementation for priority queuing products.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringgetQueueId(NotificationEvent event) Round robin per source + type.Methods inherited from class gov.usgs.earthquake.util.RoundRobinBlockingQueueadd, contains, drainTo, drainTo, offer, offer, poll, put, remainingCapacity, remove, takeMethods inherited from class gov.usgs.earthquake.util.RoundRobinQueueaddAll, clear, containsAll, element, isEmpty, iterator, peek, poll, remove, removeAll, retainAll, size, toArray, toArray, toListMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.CollectionaddAll, clear, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
- 
Constructor Details- 
NotificationEventBlockingQueuepublic NotificationEventBlockingQueue()
 
- 
- 
Method Details- 
getQueueIdRound robin per source + type.- Overrides:
- getQueueIdin class- RoundRobinQueue<NotificationEvent>
- Parameters:
- event- the object being added.
- Returns:
- id of the queue where object should be added.
 
 
-