protected static class ErrorCounter.MinuteCounter extends Object
| Modifier and Type | Method and Description |
|---|---|
long |
getEpochMinute() |
int |
getErrorCount() |
static ErrorCounter.MinuteCounter |
incrementCounter(ErrorCounter.MinuteCounter counter)
Constructs a new minute counter from the existing counter with the count incremented
|
static ErrorCounter.MinuteCounter |
newMinuteCounter(long epochMinute)
Constructs a new minute counter for the specified minute
|
public static ErrorCounter.MinuteCounter newMinuteCounter(long epochMinute)
epochMinute - Unix epoch minutepublic static ErrorCounter.MinuteCounter incrementCounter(ErrorCounter.MinuteCounter counter)
counter - Error count for that minutepublic long getEpochMinute()
public int getErrorCount()
Copyright © 2020 Stackify, LLC. All rights reserved.