Document spi-user-sessions--infinispan--use-batches

Closes #41219

Signed-off-by: Ryan Emerson <remerson@redhat.com>
This commit is contained in:
Ryan Emerson
2025-07-17 13:41:53 +01:00
committed by GitHub
parent bfd725d851
commit 7ea7c2dcc4

View File

@@ -338,10 +338,17 @@ public class InfinispanUserSessionProviderFactory implements UserSessionProvider
public List<ProviderConfigProperty> getConfigMetadata() {
ProviderConfigurationBuilder builder = ProviderConfigurationBuilder.create();
builder.property()
.name(CONFIG_USE_BATCHES)
.type("boolean")
.helpText("Enable or disable batch writes to the database. Enabled by default with the persistent-user-sessions Feature")
.defaultValue(DEFAULT_USE_BATCHES)
.add();
builder.property()
.name(CONFIG_MAX_BATCH_SIZE)
.type("int")
.helpText("Maximum size of a batch size (only applicable to persistent sessions")
.helpText("Maximum size of a batch (only applicable to persistent sessions")
.defaultValue(DEFAULT_MAX_BATCH_SIZE)
.add();