public final class AttachmentCacheMonitor extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ATTACHMENT_TIMEOUT_PROPERTY |
Modifier and Type | Method and Description |
---|---|
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
|
public static final String ATTACHMENT_TIMEOUT_PROPERTY
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()
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.