Constructor and Description |
---|
HealthCheckData(SortedMap<String,com.codahale.metrics.health.HealthCheck.Result> results)
Constructor for when you do not know how long before the next collection.
|
HealthCheckData(SortedMap<String,com.codahale.metrics.health.HealthCheck.Result> results,
long nextMillis)
Constructor for when you know how long before the next collection.
|
Modifier and Type | Method and Description |
---|---|
Long |
getExpires()
The number of milliseconds since 1st January 1970 GMT when the results are expected to be superceded by a
newer result.
|
long |
getLastModified()
The number of milliseconds since 1st January 1970 GMT when the results were collected.
|
SortedMap<String,com.codahale.metrics.health.HealthCheck.Result> |
getResults()
The results.
|
public HealthCheckData(@NonNull SortedMap<String,com.codahale.metrics.health.HealthCheck.Result> results, long nextMillis)
results
- the current results.nextMillis
- how long until the next results will be available.public long getLastModified()
@CheckForNull public Long getExpires()
null
Copyright © 2016. All rights reserved.