com.alachisoft.jvcache.runtime.dependencies
Class KeyDependency

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

public class KeyDependency
extends CacheDependency

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

See Also:
Serialized Form

Constructor Summary
KeyDependency(java.lang.String key)
          Initializes a new instance of the KeyExpiration class that monitors an array of file paths (to files or directories), an array of cache keys, or both for changes.
KeyDependency(java.lang.String[] keys)
          Initializes a new instance of the KeyExpiration class that monitors an array of file paths (to files or directories), an array of cache keys, or both for changes.
KeyDependency(java.lang.String[] keys, java.util.Date startAfter)
          Initializes a new instance of the KeyExpiration class that monitors an array of file paths (to files or directories), an array of cache keys, or both for changes.
KeyDependency(java.lang.String key, java.util.Date startAfter)
          Initializes a new instance of the KeyExpiration class that monitors an array of file paths (to files or directories), an array of cache keys, or both for changes.
 
Method Summary
 java.lang.String[] getCacheKeys()
          Return array of cache keys
 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

KeyDependency

public KeyDependency(java.lang.String key)
Initializes a new instance of the KeyExpiration class that monitors an array of file paths (to files or directories), an array of cache keys, or both for changes.

Parameters:
key -

KeyDependency

public KeyDependency(java.lang.String key,
                     java.util.Date startAfter)
Initializes a new instance of the KeyExpiration class that monitors an array of file paths (to files or directories), an array of cache keys, or both for changes.

Parameters:
key -
startAfter -

KeyDependency

public KeyDependency(java.lang.String[] keys)
Initializes a new instance of the KeyExpiration class that monitors an array of file paths (to files or directories), an array of cache keys, or both for changes.

Parameters:
keys -

KeyDependency

public KeyDependency(java.lang.String[] keys,
                     java.util.Date startAfter)
Initializes a new instance of the KeyExpiration class that monitors an array of file paths (to files or directories), an array of cache keys, or both for changes.

Parameters:
keys -
startAfter -
Method Detail

getCacheKeys

public java.lang.String[] getCacheKeys()
Return array of cache keys

Returns:

getStartAfterTicks

public long getStartAfterTicks()
Returns: