com.sun.labs.minion.indexer
Interface Closeable
- All Known Subinterfaces:
- TermStatsDictionary
- All Known Implementing Classes:
- CachedTermStatsDictionary, ClassifierDiskPartition, ClusterDiskPartition, DiskPartition, InvFileDiskPartition, UncachedTermStatsDictionary
public interface Closeable
An interface for things that can be closed, but that must respect a delay to
account for things that may be in use.
setCloseTime
void setCloseTime(long closeTime)
getCloseTime
long getCloseTime()
close
boolean close(long currTime)
- Close this thing.
- Parameters:
currTime
- the current time. If the time that the thing is supposed
to be closed is before the current time, then it will be closed.
- Returns:
true
if the thing was closed, false
otherwise.
createRemoveFile
void createRemoveFile()