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