public class Maildrop
extends Object
| Constructor and Description |
|---|
Maildrop(String name,
java.io.File maildropDir) |
| Modifier and Type | Method and Description |
|---|---|
MaildropAppender |
allocateAppender() |
void |
beginTransaction() |
void |
checkReleasedState() |
void |
commitTransaction() |
void |
delete(int messageNumber) |
long |
getCountOfMessages() |
java.io.InputStream |
getMailAsStream(int messageNumber) |
String |
getName() |
ScanListing |
getScanListing(int messageNumber) |
java.util.List<ScanListing> |
getScanListings() |
long |
getTotalOctets() |
UidListing |
getUidListing(int messageNumber) |
java.util.List<UidListing> |
getUidListings() |
void |
resetDeletions() |
void |
rollbackTransaction() |
public void beginTransaction()
throws MaildropLockedException,
MaildropPopException
public long getCountOfMessages()
public long getTotalOctets()
public java.util.List<ScanListing> getScanListings()
public ScanListing getScanListing(int messageNumber) throws MaildropPopException, IllegalStateException
MaildropPopExceptionIllegalStateExceptionpublic java.util.List<UidListing> getUidListings()
public UidListing getUidListing(int messageNumber) throws MaildropPopException, IllegalStateException
MaildropPopExceptionIllegalStateExceptionpublic java.io.InputStream getMailAsStream(int messageNumber)
throws MaildropPopException,
IllegalStateException
MaildropPopExceptionIllegalStateExceptionpublic void delete(int messageNumber)
throws MaildropPopException,
IllegalStateException
MaildropPopExceptionIllegalStateExceptionpublic void resetDeletions()
public void commitTransaction()
throws MaildropPopException,
IllegalStateException
MaildropPopExceptionIllegalStateExceptionpublic void rollbackTransaction()
throws IllegalStateException
IllegalStateExceptionpublic MaildropAppender allocateAppender() throws LocalMailSystemException
LocalMailSystemExceptionpublic void checkReleasedState()
public String getName()