Package com.avoka.fc.core.sysevent
Class SysEventQueue
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<E>
-
- java.util.concurrent.ArrayBlockingQueue<String>
-
- com.avoka.fc.core.sysevent.SysEventQueue
-
- All Implemented Interfaces:
Serializable
,Iterable<String>
,Collection<String>
,BlockingQueue<String>
,Queue<String>
public class SysEventQueue extends ArrayBlockingQueue<String>
The SysEventQueue class provides an global JVM in-memory queue for JSON system event messages.- Since:
- 18.5.0
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addAll(Collection<? extends String> msgs)
Add all messages to the queue.static SysEventQueue
getInstance()
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 Detail
-
getInstance
public static SysEventQueue getInstance()
Get instance of system event queue.- Returns:
- instance of system event queue
-
addAll
public boolean addAll(Collection<? extends String> msgs)
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
-
-