Skip to content

Commit

Permalink
IGNITE-23104 Add validation of some fields in GcConfigurationSchema (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tkalkirill authored Aug 29, 2024
1 parent d32ef2e commit 1aead9b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,20 @@
import org.apache.ignite.configuration.annotation.Config;
import org.apache.ignite.configuration.annotation.ConfigValue;
import org.apache.ignite.configuration.annotation.Value;
import org.apache.ignite.configuration.validation.Range;

/**
* Garbage collector configuration schema.
*/
@Config
public class GcConfigurationSchema {
/** Number of garbage collector threads. */
@Range(min = 1)
@Value(hasDefault = true)
public int threads = Runtime.getRuntime().availableProcessors();

/** The maximal number of entries in the storage to be garbage collected in a single batch. */
@Range(min = 0)
@Value(hasDefault = true)
public int batchSize = 5;

Expand Down

0 comments on commit 1aead9b

Please sign in to comment.