com.alachisoft.jvcache.runtime.dependencies
Class FileDependency

java.lang.Object
  extended by com.alachisoft.jvcache.runtime.dependencies.CacheDependency
      extended by com.alachisoft.jvcache.runtime.dependencies.FileDependency
All Implemented Interfaces:
java.io.Serializable

public class FileDependency
extends CacheDependency

Tracks File dependencies to other objects in application's Cache.

See Also:
Serialized Form

Constructor Summary
FileDependency(java.lang.String fileName)
          Initializes a new instance of the FileExpiration class that monitors a file or directory for changes.
FileDependency(java.lang.String[] fileName)
          Initializes a new instance of the FileExpiration class that monitors an array of file paths (to files or directories) for changes.
FileDependency(java.lang.String[] fileName, java.util.Date startAfter)
          Initializes a new instance of the FileExpiration class that monitors an array of file paths (to files or directories) for changes and specifies a time when change monitoring begins.
FileDependency(java.lang.String fileName, java.util.Date startAfter)
          Initializes a new instance of the FileExpiration class that monitors a file or directory for changes and indicates when change tracking is to begin.
 
Method Summary
 java.lang.String[] getFileNames()
          Get the array of file names
 long getStartAfterTicks()
           
 
Methods inherited from class com.alachisoft.jvcache.runtime.dependencies.CacheDependency
dispose, getDependencies
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDependency

public FileDependency(java.lang.String fileName)
Initializes a new instance of the FileExpiration class that monitors a file or directory for changes.

Parameters:
fileName -

FileDependency

public FileDependency(java.lang.String[] fileName)
Initializes a new instance of the FileExpiration class that monitors an array of file paths (to files or directories) for changes.

Parameters:
fileName -

FileDependency

public FileDependency(java.lang.String fileName,
                      java.util.Date startAfter)
Initializes a new instance of the FileExpiration class that monitors a file or directory for changes and indicates when change tracking is to begin.

Parameters:
fileName -
startAfter -

FileDependency

public FileDependency(java.lang.String[] fileName,
                      java.util.Date startAfter)
Initializes a new instance of the FileExpiration class that monitors an array of file paths (to files or directories) for changes and specifies a time when change monitoring begins.

Parameters:
fileName -
startAfter -
Method Detail

getFileNames

public java.lang.String[] getFileNames()
Get the array of file names

Returns:

getStartAfterTicks

public long getStartAfterTicks()
Returns: