booster / com.didiglobal.booster.transform.util / ServiceSupervisor

ServiceSupervisor

class ServiceSupervisor : AbstractSupervisor<Pair<String, Collection<String>>>

A supervisor for service (SPI) observing

Constructors

<init>

A supervisor for service (SPI) observing

ServiceSupervisor(action: (Pair<String, Collection<String>>) -> Unit)

Functions

accept

Determine the input is acceptable by this collector

fun accept(name: String): Boolean

collect

Returns the collected result, a non-null result means the matched input is out-of-date.

fun collect(name: String, data: () -> ByteArray): Unit