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 TypeMethodDescriptionboolean
addAll
(Collection<? extends String> msgs) Add all messages to the queue.static SysEventQueue
Get 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, toString
Methods inherited from class java.util.AbstractQueue
element, remove
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
addAll
in interfaceCollection<String>
- Overrides:
addAll
in 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
-