Skip to content
English

CassandraRememberEntitiesStoreOptionsBuilder

Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:31

Fluent builder for CassandraRememberEntitiesStoreOptionsType. Carries withX methods for the shared CassandraConnection fields too — the connection mixin is not built on its own; the store exposes its connection surface directly (same pattern as CassandraJournalOptions).

new CassandraRememberEntitiesStoreOptionsBuilder(): CassandraRememberEntitiesStoreOptionsBuilder

CassandraRememberEntitiesStoreOptionsBuilder

OptionsBuilder.constructor

build(): Partial<T>

Defined in: src/util/OptionsBuilder.ts:51

Snapshot the set fields as an independent Partial<T> (own props only).

Partial<T>

OptionsBuilder.build


withAutoCreateKeyspace(autoCreateKeyspace?): this

Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:66

If true, create the keyspace on startup (simple strategy, rf=1).

boolean = true

this


withAutoCreateTables(autoCreateTables?): this

Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:88

Auto-create the table on first use. Default: true.

boolean = true

this


withClient(client): this

Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:93

Inject a pre-built CQL client instead of letting the store instantiate its own.

CassandraClientLike

this


withConsistency(consistency): this

Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:76

CQL consistency level for all reads and writes. Default LOCAL_QUORUM (6).

number

this


withContactPoints(contactPoints): this

Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:41

Node(s) to seed the cluster topology from.

readonly string[]

this


withCredentials(username, password): this

Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:56

Username/password for PLAIN auth.

string

string

this


withKeyspace(keyspace): this

Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:51

Keyspace to USE after connect. Must already exist, or pass withAutoCreateKeyspace(true).

string

this


withLocalDataCenter(localDataCenter): this

Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:46

Local DC — required for DCAwareRoundRobinPolicy. Defaults to datacenter1.

string

this


withPort(port): this

Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:61

Port — defaults to 9042.

number

this


withReplication(replication): this

Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:71

Replication options used by autoCreateKeyspace. Ignored otherwise.

"SimpleStrategy" | "NetworkTopologyStrategy"

Readonly<Record<string, number>>

For NetworkTopologyStrategy, map of DC → replication factor.

number

this


withTable(table): this

Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:83

Table for the remember-entities state. Default: remember_entities.

string

this


static create(): CassandraRememberEntitiesStoreOptionsBuilder

Defined in: src/cluster/sharding/CassandraRememberEntitiesStoreOptions.ts:34

Start a fresh builder. Equivalent to new CassandraRememberEntitiesStoreOptionsBuilder().

CassandraRememberEntitiesStoreOptionsBuilder