public class EmailRecipientSyncQueue
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright.
|
Constructor and Description |
---|
EmailRecipientSyncQueue()
Constructor.
|
EmailRecipientSyncQueue(java.util.List list)
Constructs instance from the passed list.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getQueueAsList()
returns the current queue as a list.
|
boolean |
isFinished()
Returns true when the queue is finished syncing.
|
EmailRecipient |
pop()
Pops a recipient from the queue.
|
void |
push(EmailRecipient emailRecipient)
Adds and email recipiient to the queue.
|
void |
setFinishedPushing(boolean flag)
Informs the queue that the application has finishing pushing data onto it.
|
int |
size()
returns the current size of the queue.
|
public static final java.lang.String COPYRIGHT
public EmailRecipientSyncQueue()
public EmailRecipientSyncQueue(java.util.List list)
list
- the list to use.public java.util.List getQueueAsList()
public boolean isFinished()
public EmailRecipient pop()
public void push(EmailRecipient emailRecipient)
emailRecipient
- the recipient to add.public void setFinishedPushing(boolean flag)
flag
- set to true when the app will not push mroe data.public int size()