Package com.avoka.fc.core.sysevent
Class SysEventQueue
- All Implemented Interfaces:
Serializable,Iterable<String>,Collection<String>,BlockingQueue<String>,Queue<String>
The SysEventQueue class provides an global JVM in-memory queue for JSON system event messages.
- Since:
- 18.5.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAll(Collection<? extends String> msgs) Add all messages to the queue.static SysEventQueueGet instance of system event queue.Methods inherited from class java.util.concurrent.ArrayBlockingQueue
add, clear, contains, drainTo, drainTo, forEach, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, removeAll, removeIf, retainAll, size, spliterator, take, toArray, toArray, toStringMethods inherited from class java.util.AbstractQueue
element, removeMethods inherited from class java.util.AbstractCollection
containsAll, isEmptyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
containsAll, equals, hashCode, isEmpty, parallelStream, stream, toArray
-
Method Details
-
getInstance
Get instance of system event queue.- Returns:
- instance of system event queue
-
addAll
Add all messages to the queue.- Specified by:
addAllin interfaceCollection<String>- Overrides:
addAllin classAbstractQueue<String>- Parameters:
msgs- the messages to add- Returns:
- true if messaged added, or false if queue at capacity and messages could not be added
-