test_class.file: filter-service-core/src/test/java/cn/leancloud/filter/service/ConfigurationTest.java
test_class.identifier: ConfigurationTest
test_case.body: @Test
      public void testSetDefaultExpectedInsertions() {
          final Configuration c = new Configuration();
          assertThatThrownBy(() -> c.setDefaultExpectedInsertions(-1))
                  .isInstanceOf(IllegalArgumentException.class)
                  .hasMessage("defaultExpectedInsertions: -1 (expected: > 0)");
  
          assertThatThrownBy(() -> c.setDefaultExpectedInsertions(0))
                  .isInstanceOf(IllegalArgumentException.class)
                  .hasMessage("defaultExpectedInsertions: 0 (expected: > 0)");
      }
test_case.class_method_signature: ConfigurationTest.testSetDefaultExpectedInsertions()
test_case.full_signature: @Test public void testSetDefaultExpectedInsertions()
test_case.identifier: testSetDefaultExpectedInsertions
test_case.invocations: hasMessage isInstanceOf assertThatThrownBy setDefaultExpectedInsertions hasMessage isInstanceOf assertThatThrownBy setDefaultExpectedInsertions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSetDefaultExpectedInsertions()
focal_class.declarator: instance = new Configuration()
focal_class.modifier: private static
focal_class.original_string: private static Configuration instance = new Configuration();
focal_class.type: Configuration
focal_class.var_name: instance
focal_class.declarator: metricsPrefix
focal_class.modifier: private
focal_class.original_string: private String metricsPrefix;
focal_class.type: String
focal_class.var_name: metricsPrefix
focal_class.declarator: purgeFilterInterval
focal_class.modifier: private
focal_class.original_string: private Duration purgeFilterInterval;
focal_class.type: Duration
focal_class.var_name: purgeFilterInterval
focal_class.declarator: maxHttpConnections
focal_class.modifier: private
focal_class.original_string: private int maxHttpConnections;
focal_class.type: int
focal_class.var_name: maxHttpConnections
focal_class.declarator: maxHttpRequestLength
focal_class.modifier: private
focal_class.original_string: private int maxHttpRequestLength;
focal_class.type: int
focal_class.var_name: maxHttpRequestLength
focal_class.declarator: maxWorkerThreadPoolSize
focal_class.modifier: private
focal_class.original_string: private int maxWorkerThreadPoolSize;
focal_class.type: int
focal_class.var_name: maxWorkerThreadPoolSize
focal_class.declarator: requestTimeout
focal_class.modifier: private
focal_class.original_string: private Duration requestTimeout;
focal_class.type: Duration
focal_class.var_name: requestTimeout
focal_class.declarator: idleTimeoutMillis
focal_class.modifier: private
focal_class.original_string: private long idleTimeoutMillis;
focal_class.type: long
focal_class.var_name: idleTimeoutMillis
focal_class.declarator: defaultExpectedInsertions
focal_class.modifier: private
focal_class.original_string: private int defaultExpectedInsertions;
focal_class.type: int
focal_class.var_name: defaultExpectedInsertions
focal_class.declarator: defaultFalsePositiveProbability
focal_class.modifier: private
focal_class.original_string: private double defaultFalsePositiveProbability;
focal_class.type: double
focal_class.var_name: defaultFalsePositiveProbability
focal_class.declarator: defaultValidSecondsAfterCreate
focal_class.modifier: private
focal_class.original_string: private Duration defaultValidSecondsAfterCreate;
focal_class.type: Duration
focal_class.var_name: defaultValidSecondsAfterCreate
focal_class.declarator: persistentStorageDirectory
focal_class.modifier: private
focal_class.original_string: private String persistentStorageDirectory;
focal_class.type: String
focal_class.var_name: persistentStorageDirectory
focal_class.declarator: allowRecoverFromCorruptedPersistentFile
focal_class.modifier: private
focal_class.original_string: private boolean allowRecoverFromCorruptedPersistentFile;
focal_class.type: boolean
focal_class.var_name: allowRecoverFromCorruptedPersistentFile
focal_class.declarator: channelBufferSizeForFilterPersistence
focal_class.modifier: private
focal_class.original_string: private int channelBufferSizeForFilterPersistence;
focal_class.type: int
focal_class.var_name: channelBufferSizeForFilterPersistence
focal_class.declarator: channelOptions
focal_class.modifier: private
focal_class.original_string: private SupportedChannelOptions channelOptions;
focal_class.type: SupportedChannelOptions
focal_class.var_name: channelOptions
focal_class.declarator: persistenceCriteria
focal_class.modifier: private
focal_class.original_string: private List<TriggerPersistenceCriteria> persistenceCriteria;
focal_class.type: List<TriggerPersistenceCriteria>
focal_class.var_name: persistenceCriteria
focal_class.declarator: gracefulShutdownQuietPeriodMillis
focal_class.modifier: private
focal_class.original_string: private long gracefulShutdownQuietPeriodMillis;
focal_class.type: long
focal_class.var_name: gracefulShutdownQuietPeriodMillis
focal_class.declarator: gracefulShutdownTimeoutMillis
focal_class.modifier: private
focal_class.original_string: private long gracefulShutdownTimeoutMillis;
focal_class.type: long
focal_class.var_name: gracefulShutdownTimeoutMillis
focal_class.file: filter-service-core/src/main/java/cn/leancloud/filter/service/Configuration.java
focal_class.identifier: Configuration
focal_class.class_method_signature: Configuration.initConfiguration(String configFilePath)
focal_class.full_signature: static void initConfiguration(String configFilePath)
focal_class.identifier: initConfiguration
focal_class.modifiers: static
focal_class.parameters: (String configFilePath)
focal_class.return: void
focal_class.signature: void initConfiguration(String configFilePath)
focal_class.class_method_signature: Configuration.initConfiguration(Configuration configuration)
focal_class.full_signature: static void initConfiguration(Configuration configuration)
focal_class.identifier: initConfiguration
focal_class.modifiers: static
focal_class.parameters: (Configuration configuration)
focal_class.return: void
focal_class.signature: void initConfiguration(Configuration configuration)
focal_class.class_method_signature: Configuration.metricsPrefix()
focal_class.full_signature: static String metricsPrefix()
focal_class.identifier: metricsPrefix
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String metricsPrefix()
focal_class.class_method_signature: Configuration.purgeFilterInterval()
focal_class.full_signature: static Duration purgeFilterInterval()
focal_class.identifier: purgeFilterInterval
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: Duration
focal_class.signature: Duration purgeFilterInterval()
focal_class.class_method_signature: Configuration.maxHttpConnections()
focal_class.full_signature: static int maxHttpConnections()
focal_class.identifier: maxHttpConnections
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int maxHttpConnections()
focal_class.class_method_signature: Configuration.maxHttpRequestLength()
focal_class.full_signature: static int maxHttpRequestLength()
focal_class.identifier: maxHttpRequestLength
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int maxHttpRequestLength()
focal_class.class_method_signature: Configuration.maxWorkerThreadPoolSize()
focal_class.full_signature: static int maxWorkerThreadPoolSize()
focal_class.identifier: maxWorkerThreadPoolSize
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int maxWorkerThreadPoolSize()
focal_class.class_method_signature: Configuration.requestTimeout()
focal_class.full_signature: static Duration requestTimeout()
focal_class.identifier: requestTimeout
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: Duration
focal_class.signature: Duration requestTimeout()
focal_class.class_method_signature: Configuration.idleTimeoutMillis()
focal_class.full_signature: static long idleTimeoutMillis()
focal_class.identifier: idleTimeoutMillis
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long idleTimeoutMillis()
focal_class.class_method_signature: Configuration.defaultExpectedInsertions()
focal_class.full_signature: static int defaultExpectedInsertions()
focal_class.identifier: defaultExpectedInsertions
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int defaultExpectedInsertions()
focal_class.class_method_signature: Configuration.defaultFalsePositiveProbability()
focal_class.full_signature: static double defaultFalsePositiveProbability()
focal_class.identifier: defaultFalsePositiveProbability
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double defaultFalsePositiveProbability()
focal_class.class_method_signature: Configuration.defaultValidPeriodAfterCreate()
focal_class.full_signature: static Duration defaultValidPeriodAfterCreate()
focal_class.identifier: defaultValidPeriodAfterCreate
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: Duration
focal_class.signature: Duration defaultValidPeriodAfterCreate()
focal_class.class_method_signature: Configuration.persistentStorageDirectory()
focal_class.full_signature: static String persistentStorageDirectory()
focal_class.identifier: persistentStorageDirectory
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String persistentStorageDirectory()
focal_class.class_method_signature: Configuration.allowRecoverFromCorruptedPersistentFile()
focal_class.full_signature: static boolean allowRecoverFromCorruptedPersistentFile()
focal_class.identifier: allowRecoverFromCorruptedPersistentFile
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean allowRecoverFromCorruptedPersistentFile()
focal_class.class_method_signature: Configuration.channelBufferSizeForFilterPersistence()
focal_class.full_signature: static int channelBufferSizeForFilterPersistence()
focal_class.identifier: channelBufferSizeForFilterPersistence
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int channelBufferSizeForFilterPersistence()
focal_class.class_method_signature: Configuration.channelOptions()
focal_class.full_signature: static SupportedChannelOptions channelOptions()
focal_class.identifier: channelOptions
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: SupportedChannelOptions
focal_class.signature: SupportedChannelOptions channelOptions()
focal_class.class_method_signature: Configuration.persistenceCriteria()
focal_class.full_signature: static List<TriggerPersistenceCriteria> persistenceCriteria()
focal_class.identifier: persistenceCriteria
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: List<TriggerPersistenceCriteria>
focal_class.signature: List<TriggerPersistenceCriteria> persistenceCriteria()
focal_class.class_method_signature: Configuration.gracefulShutdownQuietPeriodMillis()
focal_class.full_signature: static long gracefulShutdownQuietPeriodMillis()
focal_class.identifier: gracefulShutdownQuietPeriodMillis
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long gracefulShutdownQuietPeriodMillis()
focal_class.class_method_signature: Configuration.gracefulShutdownTimeoutMillis()
focal_class.full_signature: static long gracefulShutdownTimeoutMillis()
focal_class.identifier: gracefulShutdownTimeoutMillis
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long gracefulShutdownTimeoutMillis()
focal_class.class_method_signature: Configuration.spec()
focal_class.full_signature: static String spec()
focal_class.identifier: spec
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String spec()
focal_class.class_method_signature: Configuration.Configuration()
focal_class.full_signature:   Configuration()
focal_class.identifier: Configuration
focal_class.parameters: ()
focal_class.signature:  Configuration()
focal_class.class_method_signature: Configuration.setMetricsPrefix(String metricsPrefix)
focal_class.full_signature: public void setMetricsPrefix(String metricsPrefix)
focal_class.identifier: setMetricsPrefix
focal_class.modifiers: public
focal_class.parameters: (String metricsPrefix)
focal_class.return: void
focal_class.signature: void setMetricsPrefix(String metricsPrefix)
focal_class.class_method_signature: Configuration.setPurgeFilterInterval(int purgeFilterIntervalMillis)
focal_class.full_signature: @JsonSetter("purgeFilterIntervalMillis") public void setPurgeFilterInterval(int purgeFilterIntervalMillis)
focal_class.identifier: setPurgeFilterInterval
focal_class.modifiers: @JsonSetter("purgeFilterIntervalMillis") public
focal_class.parameters: (int purgeFilterIntervalMillis)
focal_class.return: void
focal_class.signature: void setPurgeFilterInterval(int purgeFilterIntervalMillis)
focal_class.class_method_signature: Configuration.setMaxHttpConnections(int maxHttpConnections)
focal_class.full_signature: public void setMaxHttpConnections(int maxHttpConnections)
focal_class.identifier: setMaxHttpConnections
focal_class.modifiers: public
focal_class.parameters: (int maxHttpConnections)
focal_class.return: void
focal_class.signature: void setMaxHttpConnections(int maxHttpConnections)
focal_class.class_method_signature: Configuration.setMaxHttpRequestLength(int maxHttpRequestLength)
focal_class.full_signature: public void setMaxHttpRequestLength(int maxHttpRequestLength)
focal_class.identifier: setMaxHttpRequestLength
focal_class.modifiers: public
focal_class.parameters: (int maxHttpRequestLength)
focal_class.return: void
focal_class.signature: void setMaxHttpRequestLength(int maxHttpRequestLength)
focal_class.class_method_signature: Configuration.setMaxWorkerThreadPoolSize(int maxWorkerThreadPoolSize)
focal_class.full_signature: public void setMaxWorkerThreadPoolSize(int maxWorkerThreadPoolSize)
focal_class.identifier: setMaxWorkerThreadPoolSize
focal_class.modifiers: public
focal_class.parameters: (int maxWorkerThreadPoolSize)
focal_class.return: void
focal_class.signature: void setMaxWorkerThreadPoolSize(int maxWorkerThreadPoolSize)
focal_class.class_method_signature: Configuration.setRequestTimeout(int requestTimeoutSeconds)
focal_class.full_signature: @JsonSetter("requestTimeoutSeconds") public void setRequestTimeout(int requestTimeoutSeconds)
focal_class.identifier: setRequestTimeout
focal_class.modifiers: @JsonSetter("requestTimeoutSeconds") public
focal_class.parameters: (int requestTimeoutSeconds)
focal_class.return: void
focal_class.signature: void setRequestTimeout(int requestTimeoutSeconds)
focal_class.class_method_signature: Configuration.setIdleTimeoutMillis(int idleTimeoutMillis)
focal_class.full_signature: public void setIdleTimeoutMillis(int idleTimeoutMillis)
focal_class.identifier: setIdleTimeoutMillis
focal_class.modifiers: public
focal_class.parameters: (int idleTimeoutMillis)
focal_class.return: void
focal_class.signature: void setIdleTimeoutMillis(int idleTimeoutMillis)
focal_class.class_method_signature: Configuration.setDefaultExpectedInsertions(int defaultExpectedInsertions)
focal_class.full_signature: public void setDefaultExpectedInsertions(int defaultExpectedInsertions)
focal_class.identifier: setDefaultExpectedInsertions
focal_class.modifiers: public
focal_class.parameters: (int defaultExpectedInsertions)
focal_class.return: void
focal_class.signature: void setDefaultExpectedInsertions(int defaultExpectedInsertions)
focal_class.class_method_signature: Configuration.setDefaultFalsePositiveProbability(double defaultFalsePositiveProbability)
focal_class.full_signature: public void setDefaultFalsePositiveProbability(double defaultFalsePositiveProbability)
focal_class.identifier: setDefaultFalsePositiveProbability
focal_class.modifiers: public
focal_class.parameters: (double defaultFalsePositiveProbability)
focal_class.return: void
focal_class.signature: void setDefaultFalsePositiveProbability(double defaultFalsePositiveProbability)
focal_class.class_method_signature: Configuration.setDefaultValidPeriodAfterCreate(long defaultValidSecondsAfterCreate)
focal_class.full_signature: @JsonSetter("defaultValidSecondsAfterCreate") public void setDefaultValidPeriodAfterCreate(long defaultValidSecondsAfterCreate)
focal_class.identifier: setDefaultValidPeriodAfterCreate
focal_class.modifiers: @JsonSetter("defaultValidSecondsAfterCreate") public
focal_class.parameters: (long defaultValidSecondsAfterCreate)
focal_class.return: void
focal_class.signature: void setDefaultValidPeriodAfterCreate(long defaultValidSecondsAfterCreate)
focal_class.class_method_signature: Configuration.setChannelBufferSizeForFilterPersistence(int channelBufferSizeForFilterPersistence)
focal_class.full_signature: public void setChannelBufferSizeForFilterPersistence(int channelBufferSizeForFilterPersistence)
focal_class.identifier: setChannelBufferSizeForFilterPersistence
focal_class.modifiers: public
focal_class.parameters: (int channelBufferSizeForFilterPersistence)
focal_class.return: void
focal_class.signature: void setChannelBufferSizeForFilterPersistence(int channelBufferSizeForFilterPersistence)
focal_class.class_method_signature: Configuration.setPersistentStorageDirectory(@Nullable String persistentStorageDirectory)
focal_class.full_signature: public void setPersistentStorageDirectory(@Nullable String persistentStorageDirectory)
focal_class.identifier: setPersistentStorageDirectory
focal_class.modifiers: public
focal_class.parameters: (@Nullable String persistentStorageDirectory)
focal_class.return: void
focal_class.signature: void setPersistentStorageDirectory(@Nullable String persistentStorageDirectory)
focal_class.class_method_signature: Configuration.setAllowRecoverFromCorruptedPersistentFile(boolean allowRecoverFromCorruptedPersistentFile)
focal_class.full_signature: public void setAllowRecoverFromCorruptedPersistentFile(boolean allowRecoverFromCorruptedPersistentFile)
focal_class.identifier: setAllowRecoverFromCorruptedPersistentFile
focal_class.modifiers: public
focal_class.parameters: (boolean allowRecoverFromCorruptedPersistentFile)
focal_class.return: void
focal_class.signature: void setAllowRecoverFromCorruptedPersistentFile(boolean allowRecoverFromCorruptedPersistentFile)
focal_class.class_method_signature: Configuration.setChannelOptions(SupportedChannelOptions channelOptions)
focal_class.full_signature: public void setChannelOptions(SupportedChannelOptions channelOptions)
focal_class.identifier: setChannelOptions
focal_class.modifiers: public
focal_class.parameters: (SupportedChannelOptions channelOptions)
focal_class.return: void
focal_class.signature: void setChannelOptions(SupportedChannelOptions channelOptions)
focal_class.class_method_signature: Configuration.setPersistenceCriteria(@Nullable List<TriggerPersistenceCriteria> criteriaList)
focal_class.full_signature: @JsonProperty("triggerPersistenceCriteria") public void setPersistenceCriteria(@Nullable List<TriggerPersistenceCriteria> criteriaList)
focal_class.identifier: setPersistenceCriteria
focal_class.modifiers: @JsonProperty("triggerPersistenceCriteria") public
focal_class.parameters: (@Nullable List<TriggerPersistenceCriteria> criteriaList)
focal_class.return: void
focal_class.signature: void setPersistenceCriteria(@Nullable List<TriggerPersistenceCriteria> criteriaList)
focal_class.class_method_signature: Configuration.setGracefulShutdownQuietPeriodMillis(long gracefulShutdownQuietPeriodMillis)
focal_class.full_signature: public void setGracefulShutdownQuietPeriodMillis(long gracefulShutdownQuietPeriodMillis)
focal_class.identifier: setGracefulShutdownQuietPeriodMillis
focal_class.modifiers: public
focal_class.parameters: (long gracefulShutdownQuietPeriodMillis)
focal_class.return: void
focal_class.signature: void setGracefulShutdownQuietPeriodMillis(long gracefulShutdownQuietPeriodMillis)
focal_class.class_method_signature: Configuration.setGracefulShutdownTimeoutMillis(long gracefulShutdownTimeoutMillis)
focal_class.full_signature: public void setGracefulShutdownTimeoutMillis(long gracefulShutdownTimeoutMillis)
focal_class.identifier: setGracefulShutdownTimeoutMillis
focal_class.modifiers: public
focal_class.parameters: (long gracefulShutdownTimeoutMillis)
focal_class.return: void
focal_class.signature: void setGracefulShutdownTimeoutMillis(long gracefulShutdownTimeoutMillis)
focal_method.body: public void setDefaultExpectedInsertions(int defaultExpectedInsertions) {
          if (defaultExpectedInsertions <= 0) {
              throw new IllegalArgumentException("defaultExpectedInsertions: "
                      + defaultExpectedInsertions + " (expected: > 0)");
          }
  
          this.defaultExpectedInsertions = defaultExpectedInsertions;
      }
focal_method.class_method_signature: Configuration.setDefaultExpectedInsertions(int defaultExpectedInsertions)
focal_method.full_signature: public void setDefaultExpectedInsertions(int defaultExpectedInsertions)
focal_method.identifier: setDefaultExpectedInsertions
focal_method.modifiers: public
focal_method.parameters: (int defaultExpectedInsertions)
focal_method.return: void
focal_method.signature: void setDefaultExpectedInsertions(int defaultExpectedInsertions)