Class FreshnessStats
- java.lang.Object
-
- io.datahubproject.openapi.generated.FreshnessStats
-
@Validated @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen", date="2023-12-06T11:25:47.362934Z[Etc/UTC]") public class FreshnessStats extends java.lang.ObjectStats that describe the freshness of a dataset or query result. Useful to describe consistency and staleness of results when served out of a cache or other eventually consistent system.
-
-
Constructor Summary
Constructors Constructor Description FreshnessStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FreshnessStatscached(java.lang.Boolean cached)booleanequals(java.lang.Object o)java.util.Map<java.lang.String,java.lang.Long>getSystemFreshness()Get systemFreshnessinthashCode()java.lang.BooleanisCached()Get cachedFreshnessStatsputSystemFreshnessItem(java.lang.String key, java.lang.Long systemFreshnessItem)voidsetCached(java.lang.Boolean cached)voidsetSystemFreshness(java.util.Map<java.lang.String,java.lang.Long> systemFreshness)FreshnessStatssystemFreshness(java.util.Map<java.lang.String,java.lang.Long> systemFreshness)java.lang.StringtoString()
-
-
-
Method Detail
-
cached
public FreshnessStats cached(java.lang.Boolean cached)
-
isCached
public java.lang.Boolean isCached()
Get cached- Returns:
- cached
-
setCached
public void setCached(java.lang.Boolean cached)
-
systemFreshness
public FreshnessStats systemFreshness(java.util.Map<java.lang.String,java.lang.Long> systemFreshness)
-
putSystemFreshnessItem
public FreshnessStats putSystemFreshnessItem(java.lang.String key, java.lang.Long systemFreshnessItem)
-
getSystemFreshness
public java.util.Map<java.lang.String,java.lang.Long> getSystemFreshness()
Get systemFreshness- Returns:
- systemFreshness
-
setSystemFreshness
public void setSystemFreshness(java.util.Map<java.lang.String,java.lang.Long> systemFreshness)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-