@Component public class NotificationMessageInMemoryQueue extends Object
| Constructor and Description |
|---|
NotificationMessageInMemoryQueue() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(NotificationMessage notificationMessage)
Adds a notification message to the queue.
|
void |
clear()
Removes all of the elements from the queue.
|
boolean |
isEmpty()
Returns true if the queue contains no elements.
|
NotificationMessage |
remove()
Removes a notification message from the head of the queue.
|
int |
size()
Returns the number of elements in the queue.
|
public void add(NotificationMessage notificationMessage)
notificationMessage - the notification message to be addedpublic void clear()
public boolean isEmpty()
public NotificationMessage remove()
NoSuchElementException - if the queue is emptypublic int size()
Copyright © 2021. All rights reserved.