Package com.hazelcast.scheduledexecutor
Interface ScheduledTaskStatistics
- All Superinterfaces:
DataSerializable,IdentifiedDataSerializable
Statistics and timing info for a
IScheduledFuture accessible through IScheduledFuture.getStats()-
Method Summary
Modifier and TypeMethodDescriptionlonggetLastIdleTime(TimeUnit unit) Returns the last period of time the task was idle, waiting to get scheduledlonggetLastRunDuration(TimeUnit unit) Returns the duration of the task's last execution.longgetTotalIdleTime(TimeUnit unit) Returns the total amount of time the task was idle, waiting to get scheduled in.longReturns how many times the task was run/called.longgetTotalRunTime(TimeUnit unit) Returns the total amount of time the task spent while scheduled in.Methods inherited from interface com.hazelcast.nio.serialization.DataSerializable
readData, writeDataMethods inherited from interface com.hazelcast.nio.serialization.IdentifiedDataSerializable
getClassId, getFactoryId
-
Method Details
-
getTotalRuns
long getTotalRuns()Returns how many times the task was run/called.- Returns:
- The numbers of runs
-
getLastRunDuration
Returns the duration of the task's last execution.- Parameters:
unit- The time unit to return the duration in.- Returns:
- The total duration of the task's last execution.
-
getLastIdleTime
Returns the last period of time the task was idle, waiting to get scheduled- Parameters:
unit- The time unit to return the duration in.- Returns:
- The last idle period of time of the task.
-
getTotalRunTime
Returns the total amount of time the task spent while scheduled in.- Parameters:
unit- The time unit to return the duration in.- Returns:
- The total amount of time the task spent while scheduled in.
-
getTotalIdleTime
Returns the total amount of time the task was idle, waiting to get scheduled in.- Parameters:
unit- The time unit to return the duration in.- Returns:
- The total amount of time the task was idle, waiting to get scheduled in.
-