Interface TimerConfig
public interface TimerConfig
Configuration interface for timer settings.
-
Method Summary
Modifier and TypeMethodDescriptionSets the name of the timer.tickDuration(long tickDuration, TimeUnit timeUnit) Sets the tick duration for the timer.
-
Method Details
-
name
Sets the name of the timer.- Parameters:
name- the name to set for the timer- Returns:
- this config instance for method chaining
-
tickDuration
Sets the tick duration for the timer.- Parameters:
tickDuration- the duration of each ticktimeUnit- the time unit for the tick duration- Returns:
- this config instance for method chaining
-