Interface WatcherUpdatable

  • All Superinterfaces:
    Watcher

    public interface WatcherUpdatable
    extends Watcher
    WatcherUpdatable is the strengthen for jCasbin watchers.
    • 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.