|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.attachments.AttachmentCacheMonitor
public final class AttachmentCacheMonitor
The CacheMonitor is responsible for deleting temporary attachment files after a timeout period has expired. The register method is invoked when the attachment file is created. The access method is invoked whenever the attachment file is accessed. The checkForAgedFiles method is invoked whenever the monitor should look for files to cleanup (delete).
Field Summary | |
---|---|
static String |
ATTACHMENT_TIMEOUT_PROPERTY
|
Method Summary | |
---|---|
void |
access(String fileName)
Indicates that the file was accessed. |
void |
checkForAgedFiles()
Check for aged files and remove the aged ones. |
static AttachmentCacheMonitor |
getAttachmentCacheMonitor()
Get or Create an AttachmentCacheMonitor singleton |
int |
getTimeout()
|
void |
register(String fileName)
Register a file name with the monitor. |
void |
setTimeout(int timeout)
This method should Set a new timeout value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ATTACHMENT_TIMEOUT_PROPERTY
Method Detail |
---|
public static AttachmentCacheMonitor getAttachmentCacheMonitor()
public int getTimeout()
public void setTimeout(int timeout)
timeout
- new timeout value in secondspublic void register(String fileName)
fileName
- public void access(String fileName)
fileName
- public void checkForAgedFiles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |