Package net.carcdr.yhocuspocus.redis
Class RedisExtensionConfig.Builder
java.lang.Object
net.carcdr.yhocuspocus.redis.RedisExtensionConfig.Builder
-
Method Summary
Modifier and TypeMethodDescriptionawarenessEnabled(boolean enabled) Enables or disables cross-instance awareness sync.awarenessThrottle(Duration throttle) Sets the minimum interval between awareness updates.build()Builds the configuration.instanceId(String instanceId) Sets the unique instance ID for this server.Sets the Redis key prefix.
-
Method Details
-
prefix
Sets the Redis key prefix.- Parameters:
prefix- the prefix (defaults to "yhocuspocus")- Returns:
- this builder
-
instanceId
Sets the unique instance ID for this server.If not set, a random UUID will be generated.
- Parameters:
instanceId- the instance ID- Returns:
- this builder
-
awarenessThrottle
Sets the minimum interval between awareness updates.- Parameters:
throttle- the throttle duration (defaults to 100ms)- Returns:
- this builder
-
awarenessEnabled
Enables or disables cross-instance awareness sync.- Parameters:
enabled- true to enable awareness sync (default: true)- Returns:
- this builder
-
build
-