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
MaildropPopException
IllegalStateException
public java.util.List<UidListing> getUidListings()
public UidListing getUidListing(int messageNumber) throws MaildropPopException, IllegalStateException
MaildropPopException
IllegalStateException
public java.io.InputStream getMailAsStream(int messageNumber) throws MaildropPopException, IllegalStateException
MaildropPopException
IllegalStateException
public void delete(int messageNumber) throws MaildropPopException, IllegalStateException
MaildropPopException
IllegalStateException
public void resetDeletions()
public void commitTransaction() throws MaildropPopException, IllegalStateException
MaildropPopException
IllegalStateException
public void rollbackTransaction() throws IllegalStateException
IllegalStateException
public MaildropAppender allocateAppender() throws LocalMailSystemException
LocalMailSystemException
public void checkReleasedState()
public String getName()