collections

var collections: Set<Keyspace>

The initial set of transaction metadata collections to clean up. Has no effect if transaction cleanup is explicitly disabled.

Defaults to an empty set.

Specifying at least one collection has the side effect of starting cleanup immediately, instead of deferring cleanup until the first transaction starts.

Note that TransactionsConfigDslBuilder.metadataCollection does not need to be specified here, since it's always cleaned up (unless transaction cleanup is explicitly disabled).