public interface LifecycleManager
| Modifier and Type | Method and Description |
|---|---|
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.
|
FileAccessor create(java.lang.String attachmentDir) throws java.io.IOException
attachmentDir - FileAccessor for the file created by this methodjava.io.IOExceptionvoid delete(java.io.File file)
throws java.io.IOException
file - java.io.IOExceptionvoid deleteOnExit(java.io.File file)
throws java.io.IOException
file - java.io.IOExceptionvoid deleteOnTimeInterval(int interval,
java.io.File file)
throws java.io.IOException
interval - file - java.io.IOExceptionFileAccessor getFileAccessor(java.lang.String file) throws java.io.IOException
file - FileAccessor object for the given filejava.io.IOException