public final class ResourceChangeInfo extends Object
| Constructor and Description |
|---|
ResourceChangeInfo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isChanged(String groupName) |
boolean |
isCheckRequiredForGroup(String groupName)
Checks if the current hash was set previously and persist the groupName in the set of the groups who are interested
about the change.
|
void |
reset()
Resets the state of this
ResourceChangeInfo by copying the current hash to previous hash and reseting
current hash to null. |
String |
toString() |
void |
updateHashForGroup(String hash,
String groupName)
Updates the hash associated with the resource for a give groupName.
|
public void updateHashForGroup(String hash, String groupName)
hash - the most recent computed hash.groupName - name of the group for which the change of resource is detected.public void reset()
ResourceChangeInfo by copying the current hash to previous hash and reseting
current hash to null. This operation should be invoked after a change cycle completes and a new one is prepared.public boolean isChanged(String groupName)
groupName - associated with the current change check.public boolean isCheckRequiredForGroup(String groupName)
groupName - the name of the group which contains the resource for which check is performed.Copyright © 2008-2014. All Rights Reserved.