public interface NotificationsQueue
Modifier and Type | Method and Description |
---|---|
void |
addListener(CaptainUpNotificationListener listener) |
void |
clear()
Removes all notifications from the queue.
|
boolean |
isEmpty() |
CaptainUpObject |
peek()
Retrieves, but does not remove, the head of the notification's queue,
or returns
null if this queue is empty. |
CaptainUpObject |
poll()
Retrieves and removes the notification at the head of this queue,
or returns
null if this queue is empty. |
void |
removeListener(CaptainUpNotificationListener listener) |
int |
size()
Returns the number of notifications in the queue.
|
void addListener(CaptainUpNotificationListener listener)
void removeListener(CaptainUpNotificationListener listener)
CaptainUpObject peek()
null
if this queue is empty.null
if this queue is emptyCaptainUpObject poll()
null
if this queue is empty. The notification is also deleted from the
captain up servers.null
if this queue is emptyint size()
void clear()
boolean isEmpty()