public class FileStateReaper
extends java.lang.Object
implements java.lang.Runnable
FileStateCache objects register with the file state reaper to periodically check for expired file states.
Constructor and Description |
---|
FileStateReaper()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addStateCache(java.lang.String filesysName,
FileStateCache stateCache)
Add a file state cache to the reaper list
|
long |
getCheckInterval()
Return the expired file state checker interval, in milliseconds
|
boolean |
hasDebug()
Determine if debug output is enabled
|
void |
removeStateCache(java.lang.String filesysName)
Remove a state cache from the reaper list
|
void |
run()
Expired file state checker thread
|
void |
setCheckInterval(long chkIntval)
Set the expired file state checker interval, in milliseconds
|
void |
shutdownRequest()
Request the file state checker thread to shutdown
|
public final boolean hasDebug()
public final long getCheckInterval()
public final void setCheckInterval(long chkIntval)
chkIntval
- longpublic final void addStateCache(java.lang.String filesysName, FileStateCache stateCache)
filesysName
- StringstateCache
- FileStateCachepublic final void removeStateCache(java.lang.String filesysName)
filesysName
- Stringpublic void run()
run
in interface java.lang.Runnable
public final void shutdownRequest()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.