public class KeyDependency extends CacheDependency
Constructor | Description |
---|---|
KeyDependency(java.lang.String key) |
Initializes a new instance of the KeyDependency class that monitors a cache key for
changes based on the update or remove operation performed and taking effect instantly.
|
KeyDependency(java.lang.String key,
KeyDependencyType keyDependencyType) |
Initializes a new instance of the KeyDependency class that monitors a cache key for
changes based on the operation performed (that is specified by keyDependencyType argument)
and taking effect instantly.
|
KeyDependency(java.lang.String key,
java.util.Date startAfter) |
Initializes a new instance of the KeyDependency class that monitors a cache key for
changes based on the update or remove operation performed and taking effect instantly
corresponding to the Date specified.
|
KeyDependency(java.lang.String key,
java.util.Date startAfter,
KeyDependencyType keyDependencyType) |
Initializes a new instance of the KeyDependency class that monitors a cache key for
changes based on the operation performed (that is specified by keyDependencyType argument)
and taking effect instantly corresponding to the Date specified.
|
KeyDependency(java.util.List<java.lang.String> keys) |
Initializes a new instance of the KeyDependency class that monitors a list of
cache keys for changes based on the update or remove operation performed
and taking effect instantly.
|
KeyDependency(java.util.List<java.lang.String> keys,
KeyDependencyType keyDependencyType) |
Initializes a new instance of the KeyDependency class that monitors a list of cache keys
for changes based on the operation performed (that is specified by keyDependencyType argument)
and taking effect instantly.
|
KeyDependency(java.util.List<java.lang.String> keys,
java.util.Date startAfter) |
Initializes a new instance of the KeyDependency class that monitors a list of
cache keys for changes based on the update or remove operation performed
and taking effect instantly corresponding to the Date specified.
|
KeyDependency(java.util.List<java.lang.String> keys,
java.util.Date startAfter,
KeyDependencyType keyDependencyType) |
Initializes a new instance of the KeyDependency class that monitors a list of cache keys
for changes based on the operation performed (that is specified by keyDependencyType argument)
and taking effect instantly corresponding to the Date specified.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.Collection<java.lang.String> |
getCacheKeys() |
Gets the list of cache keys.
|
KeyDependencyType |
getKeyDependencyType() |
Enumeration specifying operation upon which key dependency is to be triggered.
|
long |
getStartAfterTicks() |
Gets the time after which dependency is to be started.
|
void |
setKeyDependencyType(KeyDependencyType value) |
Enumeration specifying operation upon which key dependency is to be triggered.
|
dispose, getDependencies
public KeyDependency(java.lang.String key) throws OperationFailedException
key
- The cache key which will be monitored for update or removal.OperationFailedException
public KeyDependency(java.lang.String key, java.util.Date startAfter) throws OperationFailedException
key
- The cache key which will be monitored for update or removal.startAfter
- The time after which specified key is monitored.OperationFailedException
public KeyDependency(java.lang.String key, KeyDependencyType keyDependencyType) throws OperationFailedException
key
- The cache key which will be monitored for the specified operations.keyDependencyType
- Specifies operation/operations upon which key dependency is to be triggered.OperationFailedException
public KeyDependency(java.lang.String key, java.util.Date startAfter, KeyDependencyType keyDependencyType) throws OperationFailedException
key
- The cache key which will be monitored for the specified operations.startAfter
- The time after which specified key is monitored.keyDependencyType
- Specifies operation/operations upon which key dependency is to be triggered.OperationFailedException
public KeyDependency(java.util.List<java.lang.String> keys) throws OperationFailedException
keys
- The list of cache keys which will be monitored for update or removal.OperationFailedException
public KeyDependency(java.util.List<java.lang.String> keys, java.util.Date startAfter) throws OperationFailedException
keys
- The list of cache keys which will be monitored for update or removal.startAfter
- The time after which specified keys are monitored.OperationFailedException
public KeyDependency(java.util.List<java.lang.String> keys, KeyDependencyType keyDependencyType) throws OperationFailedException
keys
- The list of cache keys which will be monitored for update or removal.keyDependencyType
- Specifies operation/operations upon which key dependency is to be triggered.OperationFailedException
public KeyDependency(java.util.List<java.lang.String> keys, java.util.Date startAfter, KeyDependencyType keyDependencyType) throws OperationFailedException
keys
- The list of cache keys which will be monitored for the specified operations.startAfter
- The time after which specified keys are monitored.keyDependencyType
- Specifies operation/operations upon which key dependency is to be triggered.OperationFailedException
public java.util.Collection<java.lang.String> getCacheKeys()
public final KeyDependencyType getKeyDependencyType()
public final void setKeyDependencyType(KeyDependencyType value)
value
- The KeyDependencyType to be associated with the dependency.public long getStartAfterTicks()