|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.calfater.mailcarbon.impl.manager.folder.FolderManager
public class FolderManager
The Class FolderManager.
| Constructor Summary | |
|---|---|
FolderManager(int maxAttempts)
Instantiates a new folder manager. |
|
| Method Summary | |
|---|---|
boolean |
canProcess(javax.mail.Folder folder)
A Folder can be processed if it has not been already fully copied
and it doesn't failed to copy too many times. |
void |
clear()
Clear the list of already copied folders |
void |
done(javax.mail.Folder folder)
Informs the FolderManager that the folder is fully copied. |
void |
failed(javax.mail.Folder folder)
Tells the FolderManager that an error occurred while copying/creating the folder. |
java.util.List<java.lang.String> |
getFolders()
Gets the folders. |
int |
getMaxAttempts()
Gets the max attempts. |
void |
reset(javax.mail.Folder folder)
Reset. |
void |
setFolders(java.util.List<java.lang.String> folderList)
Sets the folders. |
protected java.lang.String |
uniqueId(javax.mail.Folder folder)
Generate folder unique id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FolderManager(int maxAttempts)
maxAttempts - the max attempts| Method Detail |
|---|
public void done(javax.mail.Folder folder)
IFolderManager
done in interface IFolderManagerfolder - the folderpublic void failed(javax.mail.Folder folder)
IFolderManager
failed in interface IFolderManagerfolder - the folderpublic boolean canProcess(javax.mail.Folder folder)
IFolderManagerFolder can be processed if it has not been already fully copied
and it doesn't failed to copy too many times.
canProcess in interface IFolderManagerfolder - the folder
public void reset(javax.mail.Folder folder)
IFolderManager
reset in interface IFolderManagerfolder - the folderpublic java.util.List<java.lang.String> getFolders()
IFolderManager
getFolders in interface IFolderManagerpublic void setFolders(java.util.List<java.lang.String> folderList)
IFolderManager
setFolders in interface IFolderManagerfolderList - the new folderspublic int getMaxAttempts()
IFolderManager
getMaxAttempts in interface IFolderManagerpublic void clear()
IFolderManager
clear in interface IFolderManagerprotected java.lang.String uniqueId(javax.mail.Folder folder)
folder - the folder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||