Package com.hazelcast.scheduledexecutor
Interface ScheduledTaskStatistics
-
- All Superinterfaces:
DataSerializable
,IdentifiedDataSerializable
public interface ScheduledTaskStatistics extends IdentifiedDataSerializable
Statistics and timing info for aIScheduledFuture
accessible throughIScheduledFuture.getStats()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getLastIdleTime(java.util.concurrent.TimeUnit unit)
Returns the last period of time the task was idle, waiting to get scheduledlong
getLastRunDuration(java.util.concurrent.TimeUnit unit)
Returns the duration of the task's last execution.long
getTotalIdleTime(java.util.concurrent.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(java.util.concurrent.TimeUnit unit)
Returns the total amount of time the task spent while scheduled in.-
Methods inherited from interface com.hazelcast.nio.serialization.DataSerializable
readData, writeData
-
Methods inherited from interface com.hazelcast.nio.serialization.IdentifiedDataSerializable
getClassId, getFactoryId
-
-
-
-
Method Detail
-
getTotalRuns
long getTotalRuns()
Returns how many times the task was ran/called.- Returns:
- The numbers of runs
-
getLastRunDuration
long getLastRunDuration(java.util.concurrent.TimeUnit unit)
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
long getLastIdleTime(java.util.concurrent.TimeUnit unit)
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
long getTotalRunTime(java.util.concurrent.TimeUnit unit)
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
long getTotalIdleTime(java.util.concurrent.TimeUnit unit)
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.
-
-