public class FileDependency extends CacheDependency
Constructor | Description |
---|---|
FileDependency(java.lang.Iterable<java.lang.String> fileNames) |
Initializes a new instance of the FileDependency class that monitors a list of file paths (to files or directories) for changes.
|
FileDependency(java.lang.Iterable<java.lang.String> fileNames,
java.util.Date startAfter) |
Initializes a new instance of the FileDependency class that monitors a list of file
paths (to files or directories) for changes and specifies a time when
change monitoring begins.
|
FileDependency(java.lang.String fileName) |
Initializes a new instance of the FileDependency class that monitors a file or directory for changes.
|
FileDependency(java.lang.String fileName,
java.util.Date startAfter) |
Initializes a new instance of the FileDependency class that monitors a file or
directory for changes and indicates when change tracking is to begin.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.Collection<java.lang.String> |
getFileNames() |
Gets the list of file names.
|
long |
getStartAfterTicks() |
Gets the time after which dependency is to be started.
|
dispose, getDependencies
public FileDependency(java.lang.String fileName) throws OperationFailedException
fileName
- The filename along with the path that is to be monitored.OperationFailedException
public FileDependency(java.lang.Iterable<java.lang.String> fileNames) throws OperationFailedException
fileNames
- The file names that are to be monitored.OperationFailedException
public FileDependency(java.lang.String fileName, java.util.Date startAfter) throws OperationFailedException
fileName
- The filename along with the path that is to be monitored.startAfter
- The time after which the file will be monitored.OperationFailedException
public FileDependency(java.lang.Iterable<java.lang.String> fileNames, java.util.Date startAfter) throws OperationFailedException
fileNames
- The file names that are to be monitored.startAfter
- The time after which the file/files will be monitored.OperationFailedException
public java.util.Collection<java.lang.String> getFileNames()
public long getStartAfterTicks()