GenericIdleService
Abstract base class that wraps Guava's AbstractIdleService with Kotlin Duration-based synchronous start and stop methods.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Creates a Service.Listener for this Service that logs all lifecycle transitions (starting, running, stopping, terminated, failed) using the provided logger.
Link copied to clipboard
Link copied to clipboard
Starts the service and blocks until it is running, for Java callers: the overload taking a Kotlin Duration is compiled under a mangled name that Java cannot call.
Starts the service asynchronously and blocks until it is running.