Package org.casbin.jcasbin.persist
Interface WatcherUpdatable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
updateForUpdatePolicy(java.util.List<java.lang.String> oldRule, java.util.List<java.lang.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 Detail
-
updateForUpdatePolicy
void updateForUpdatePolicy(java.util.List<java.lang.String> oldRule, java.util.List<java.lang.String> newRule)
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.
-
-