public class HealthCheckResultCache extends Object
Constructor and Description |
---|
HealthCheckResultCache() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the whole cache
|
org.apache.sling.hc.api.execution.HealthCheckExecutionResult |
createExecutionResultWithStickyResults(org.apache.sling.hc.api.execution.HealthCheckExecutionResult origResult)
Creates a new execution result
|
org.apache.sling.hc.api.execution.HealthCheckExecutionResult |
getValidCacheResult(org.apache.sling.hc.util.HealthCheckMetadata metadata,
long resultCacheTtlInMs)
Return the cached result if it's still valid.
|
void |
removeCachedResult(Long serviceId)
Remove entry from cache
|
String |
toString() |
void |
updateWith(org.apache.sling.hc.api.execution.HealthCheckExecutionResult result)
Update the cache with the result
|
void |
useValidCacheResults(List<org.apache.sling.hc.util.HealthCheckMetadata> metadatas,
Collection<org.apache.sling.hc.api.execution.HealthCheckExecutionResult> results,
long resultCacheTtlInMs)
Get the valid cache results
|
public void updateWith(org.apache.sling.hc.api.execution.HealthCheckExecutionResult result)
public void useValidCacheResults(List<org.apache.sling.hc.util.HealthCheckMetadata> metadatas, Collection<org.apache.sling.hc.api.execution.HealthCheckExecutionResult> results, long resultCacheTtlInMs)
public org.apache.sling.hc.api.execution.HealthCheckExecutionResult getValidCacheResult(org.apache.sling.hc.util.HealthCheckMetadata metadata, long resultCacheTtlInMs)
public org.apache.sling.hc.api.execution.HealthCheckExecutionResult createExecutionResultWithStickyResults(org.apache.sling.hc.api.execution.HealthCheckExecutionResult origResult)
origResult
- public void clear()
public void removeCachedResult(Long serviceId)
Copyright © 2013–2017 The Apache Software Foundation. All rights reserved.