public class FileDirStore
extends Object
Constructor and Description |
---|
FileDirStore()
use this constructor with setters
|
FileDirStore(java.io.File dir,
int maxQueueSize) |
Modifier and Type | Method and Description |
---|---|
void |
delete(mireka.transmission.queue.MailName mailName) |
mireka.transmission.queue.MailName[] |
initializeAndQueryMailNamesOrderedBySchedule()
this function must be called before any other method, and it cannot be
called more then once.
|
void |
moveToErrorDir(mireka.transmission.queue.MailName mailName) |
Mail |
read(mireka.transmission.queue.MailName mailName) |
mireka.transmission.queue.MailName |
save(Mail srcMail) |
void |
setDir(String dir) |
void |
setMaxSize(int maxSize) |
String |
toString() |
public FileDirStore()
public FileDirStore(java.io.File dir, int maxQueueSize)
public mireka.transmission.queue.MailName[] initializeAndQueryMailNamesOrderedBySchedule() throws QueueStorageException
QueueStorageException
- if the store cannot be initialized for some reason.public mireka.transmission.queue.MailName save(Mail srcMail) throws QueueStorageException
QueueStorageException
public Mail read(mireka.transmission.queue.MailName mailName) throws QueueStorageException
QueueStorageException
public void moveToErrorDir(mireka.transmission.queue.MailName mailName) throws QueueStorageException
QueueStorageException
public void delete(mireka.transmission.queue.MailName mailName) throws QueueStorageException
QueueStorageException
public String toString()
toString
in class Object
public void setDir(String dir)
public void setMaxSize(int maxSize)