Skip to content

Commit a24a6af

Browse files
refactor+doc: make readonly
1 parent d85ec98 commit a24a6af

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

lib/core/odp/odp_manager.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,25 +80,32 @@ export abstract class OdpManager implements IOdpManager {
8080
/**
8181
* ODP Segment Manager which provides an interface to the remote ODP server (GraphQL API) for audience segments mapping.
8282
* It fetches all qualified segments for the given user context and manages the segments cache for all user contexts.
83+
* @private
84+
* @readonly
8385
*/
84-
private segmentManager: IOdpSegmentManager;
86+
private readonly segmentManager: IOdpSegmentManager;
8587

8688
/**
8789
* ODP Event Manager which provides an interface to the remote ODP server (REST API) for events.
8890
* It will queue all pending events (persistent) and send them (in batches of up to 10 events) to the ODP server when possible.
91+
* @protected
92+
* @readonly
8993
*/
9094
protected readonly eventManager: IOdpEventManager;
9195

9296
/**
9397
* Handler for recording execution logs
9498
* @protected
99+
* @readonly
95100
*/
96-
protected logger: LogHandler;
101+
protected readonly logger: LogHandler;
97102

98103
/**
99104
* ODP configuration settings for identifying the target API and segments
105+
* @protected
106+
* @readonly
100107
*/
101-
protected odpIntegrationConfig?: OdpIntegrationConfig;
108+
protected readonly odpIntegrationConfig?: OdpIntegrationConfig;
102109

103110
constructor({
104111
odpIntegrationConfig,

0 commit comments

Comments
 (0)