Skip to content

DbServicePg

do- edited this page Jul 22, 2024 · 9 revisions

DbServicePg is a JobSource that creates and launches jobs based on incoming notifications provided by a DbListenerPg. For each Job produced, and toComplete () is immediately launched.

So it's like a WebService, but bound to PostgreSQL protocol instead of HTTP.

Constructor

The signature here is just like the parent class. Only the test option is added.

Properties

Name Type Default Description
test DbNotificationPg => Boolean n => n.isJSON Message selector, see Router for details

process (notification)

Creates a new Job instance with .rq parsed from notification.payload as JSON object.

Clone this wiki locally