Class GuardRuleEntry
java.lang.Object
org.frontcache.guard.GuardRuleEntry
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 Summary
ConstructorsConstructorDescriptionGuardRuleEntry(String name, String condition, String action, boolean dryRun, long hits) -
Method Summary
-
Constructor Details
-
GuardRuleEntry
public GuardRuleEntry() -
GuardRuleEntry
-
-
Method Details
-
getName
-
setName
-
getCondition
-
setCondition
-
getAction
-
setAction
-
isDryRun
public boolean isDryRun() -
setDryRun
public void setDryRun(boolean dryRun) -
getHits
public long getHits() -
setHits
public void setHits(long hits) -
toString
-