@Beta public interface ScheduledTaskStatistics extends IdentifiedDataSerializable
IScheduledFuture
accessible through IScheduledFuture.getStats()
Modifier and Type | Method and Description |
---|---|
long |
getLastIdleTime(TimeUnit unit)
Returns the last period of time the task was idle, waiting to get scheduled
|
long |
getLastRunDuration(TimeUnit unit)
Returns the duration of the task's last execution.
|
long |
getTotalIdleTime(TimeUnit unit)
Returns the total amount of time the task was idle, waiting to get scheduled in.
|
long |
getTotalRuns()
Returns how many times the task was ran/called.
|
long |
getTotalRunTime(TimeUnit unit)
Returns the total amount of time the task spent while scheduled in.
|
getFactoryId, getId
readData, writeData
long getTotalRuns()
long getLastRunDuration(TimeUnit unit)
unit
- The time unit to return the duration in.long getLastIdleTime(TimeUnit unit)
unit
- The time unit to return the duration in.long getTotalRunTime(TimeUnit unit)
unit
- The time unit to return the duration in.long getTotalIdleTime(TimeUnit unit)
unit
- The time unit to return the duration in.Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.