|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LifecycleManager
Lifecycle Manager will be used to manage the lifecycle of attachment files. Axiom forks attachment processing based on the size of attachment to be processed. Attachments are either processed by storing them in memory or by storing them in file system based on the size of the attachment file. Lifecycle Manager provides and organized way of managing attachments, by providing calls to create and delete attachments.
Method Summary | |
---|---|
FileAccessor |
create(java.lang.String attachmentDir)
Create a unique file in the designated directory |
void |
delete(java.io.File file)
Deletes attachment file |
void |
deleteOnExit(java.io.File file)
Mark the file for deletion on application/VM exit |
void |
deleteOnTimeInterval(int interval,
java.io.File file)
Mark attachment file for deletion when designated time interval in seconds has elapsed. |
FileAccessor |
getFileAccessor(java.lang.String file)
This method will return the file accessor associated with this file. |
Method Detail |
---|
FileAccessor create(java.lang.String attachmentDir) throws java.io.IOException
attachmentDir
-
java.io.IOException
void delete(java.io.File file) throws java.io.IOException
File
-
java.io.IOException
void deleteOnExit(java.io.File file) throws java.io.IOException
File
-
java.io.IOException
void deleteOnTimeInterval(int interval, java.io.File file) throws java.io.IOException
interval
- File
-
java.io.IOException
FileAccessor getFileAccessor(java.lang.String file) throws java.io.IOException
file
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |