invoke

Creates a new MonitoringMessageHandler using the provided configuration.

Return

A new instance of MonitoringMessageHandler configured according to the provided createConfig lambda.

Parameters

createConfig

A lambda that returns a Config object.