Package org.casbin.jcasbin.persist
Interface WatcherUpdatable
- All Superinterfaces:
Watcher
WatcherUpdatable is the strengthen for jCasbin watchers.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
updateForUpdatePolicy
(List<String> oldRule, List<String> newRule) updateForUpdatePolicy calls the update callback of other instances to synchronize their policy.Methods inherited from interface org.casbin.jcasbin.persist.Watcher
setUpdateCallback, setUpdateCallback, update
-
Method Details
-
updateForUpdatePolicy
updateForUpdatePolicy calls the update callback of other instances to synchronize their policy. It is called after Enforcer.UpdatePolicy()- Parameters:
oldRule
- the old rule.newRule
- the new rule.
-