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 using the provided logger: running and terminated at INFO, the starting and stopping that lead to them at DEBUG, and failed at ERROR with its cause.
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.