public class EmptyMailStatusResult extends Object implements MailStatusResult
EmptyMailStatusResult
.Modifier and Type | Field and Description |
---|---|
static EmptyMailStatusResult |
INSTANCE
An instance of
EmptyMailStatusResult . |
Constructor and Description |
---|
EmptyMailStatusResult() |
Modifier and Type | Method and Description |
---|---|
Iterator<MailStatus> |
getAll() |
Iterator<MailStatus> |
getAllErrors() |
Iterator<MailStatus> |
getByState(MailState state) |
long |
getProcessedMailCount() |
long |
getTotalMailCount() |
boolean |
isProcessed() |
void |
waitTillProcessed(long timeout)
Wait till all messages on the sending queue have been sent (for this batch) before returning.
|
public static final EmptyMailStatusResult INSTANCE
EmptyMailStatusResult
.public long getTotalMailCount()
getTotalMailCount
in interface MailStatusResult
public long getProcessedMailCount()
getProcessedMailCount
in interface MailStatusResult
public void waitTillProcessed(long timeout)
MailStatusResult
waitTillProcessed
in interface MailStatusResult
timeout
- the maximum amount of time to wait in millisecondspublic boolean isProcessed()
isProcessed
in interface MailStatusResult
public Iterator<MailStatus> getAll()
getAll
in interface MailStatusResult
public Iterator<MailStatus> getAllErrors()
getAllErrors
in interface MailStatusResult
public Iterator<MailStatus> getByState(MailState state)
getByState
in interface MailStatusResult
state
- the state to match (prepare_success, prepare_error, send_success, send_error or send_fatal_error)Copyright © 2004–2022 XWiki. All rights reserved.