ServiceManagerListenerHelper

class ServiceManagerListenerHelper : ServiceManager.Listener

DSL builder for ServiceManager.Listener that allows setting callbacks for healthy, stopped, and failure lifecycle events.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun failure(service: Service)

fun failure(block: (Service) -> Unit)

Sets the callback invoked when a service fails.

Link copied to clipboard
open override fun healthy()

fun healthy(block: () -> Unit)

Sets the callback invoked when all services are healthy.

Link copied to clipboard
open override fun stopped()

fun stopped(block: () -> Unit)

Sets the callback invoked when all services have stopped.