core / pragma.services / AlwaysStartedNodeService /

AlwaysStartedNodeService #

abstract class AlwaysStartedNodeService(pragmaNode: PragmaNode) : NodeService

A child class of NodeService that will be instantiated automatically on every node.

It is not required to be added as a dependency to a DistributedService via @PragmaService.dependencies

Typically used for common services like logging and metrics.

Constructors #

AlwaysStartedNodeService

fun AlwaysStartedNodeService(pragmaNode: PragmaNode)