Interface WatcherUpdatable

All Superinterfaces:
Watcher

public interface WatcherUpdatable extends Watcher
WatcherUpdatable is the strengthen for jCasbin watchers.
  • Method Details

    • updateForUpdatePolicy

      void updateForUpdatePolicy(List<String> oldRule, List<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.