SQLitePubSubParameters
Class: SQLitePubSubParameters
Defined in: sqlite/src/sqlitepubsub.service.ts:12
Configuration for SQLitePubSubService
Extends
ServiceParameters
Implements
Constructors
Constructor
new SQLitePubSubParameters():
SQLitePubSubParameters
Returns
SQLitePubSubParameters
Inherited from
ServiceParameters.constructor
Properties
autoCreateTable?
optionalautoCreateTable?:boolean
Defined in: sqlite/src/sqlitepubsub.service.ts:43
Create the table on init
Default
true
batchSize?
optionalbatchSize?:number
Defined in: sqlite/src/sqlitepubsub.service.ts:38
Max messages fetched per poll
Default
100
busyTimeout?
optionalbusyTimeout?:number
Defined in: sqlite/src/sqlitepubsub.service.ts:56
PRAGMA busy_timeout in ms
Default
5000
Implementation of
SQLiteConnectionParameters.busyTimeout
channel?
optionalchannel?:string
Defined in: sqlite/src/sqlitepubsub.service.ts:17
Channel name
Default
the service name lowercased
database?
optionaldatabase?:SQLDatabase
Defined in: sqlite/src/sqlitepubsub.service.ts:51
Services giving the same database name share one handle
Implementation of
SQLiteConnectionParameters.database
persistence?
optionalpersistence?:SQLitePersistence
Defined in: sqlite/src/sqlitepubsub.service.ts:47
Omitted: in-process only (services sharing database.name); set: file shared by the processes of one host
Implementation of
SQLiteConnectionParameters.persistence
pollInterval?
optionalpollInterval?:number
Defined in: sqlite/src/sqlitepubsub.service.ts:28
Poll interval in ms for messages written by other processes
Default
100
pragmas?
optionalpragmas?:Record<string,string|number>
Defined in: sqlite/src/sqlitepubsub.service.ts:60
Extra PRAGMAs run on open
Implementation of
SQLiteConnectionParameters.pragmas
retention?
optionalretention?:number
Defined in: sqlite/src/sqlitepubsub.service.ts:33
Seconds a message is kept for slow consumers before being purged
Default
60
table?
optionaltable?:string
Defined in: sqlite/src/sqlitepubsub.service.ts:23
Table holding the message log
Default
"webda_pubsub"
Pattern
/^[a-zA-Z_][a-zA-Z0-9_]*$/
type
type:
string
Defined in: core/lib/services/serviceparameters.d.ts:9
Type of the service
Inherited from
ServiceParameters.type
Methods
load()
load(
params?):this
Defined in: sqlite/src/sqlitepubsub.service.ts:67
Parameters
params?
any = {}
the input parameters
Returns
this
this
Overrides
ServiceParameters.load
update()
update(
params,delta):this
Defined in: core/lib/application/parameters.d.ts:21
Update parameters and call watchers if a parameter was changed
Parameters
params
any
the service parameters
delta
any
the delta
Returns
this
this for chaining
Inherited from
ServiceParameters.update
with()
with(
callback):this
Defined in: core/lib/application/parameters.d.ts:27
Watch for changes on the parameters and call watchers when a parameter is changed
Parameters
callback
(params) => void
the callback function
Returns
this
this for chaining
Inherited from
ServiceParameters.with