Class GuardRuleEntry

java.lang.Object
org.frontcache.guard.GuardRuleEntry

public class GuardRuleEntry extends Object
Wire/DTO view of a GuardRule - what the management API (get-guard-rules) returns and the console renders. Deliberately flat and JSON-friendly: the live rule holds compiled patterns and a counter, none of which travel. `hits` is a snapshot taken when the response was built; counters are in-memory and reset when the node restarts or the rules are reloaded.
  • Constructor Details

    • GuardRuleEntry

      public GuardRuleEntry()
    • GuardRuleEntry

      public GuardRuleEntry(String name, String condition, String action, boolean dryRun, long hits)
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getCondition

      public String getCondition()
    • setCondition

      public void setCondition(String condition)
    • getAction

      public String getAction()
    • setAction

      public void setAction(String action)
    • isDryRun

      public boolean isDryRun()
    • setDryRun

      public void setDryRun(boolean dryRun)
    • getHits

      public long getHits()
    • setHits

      public void setHits(long hits)
    • toString

      public String toString()
      Overrides:
      toString in class Object