'"', ',', ';', '/', '?', '[', ']', '<', '>', '.', ':', ' ' };
protected void checkConsumerConfig(final ConsumerConfig consumerConfig) {
if (StringUtils.isBlank(consumerConfig.getGroup())) {
throw new InvalidConsumerConfigException("Blank group");
}
final char[] chary = new char[consumerConfig.getGroup().length()];
consumerConfig.getGroup().getChars(0, chary.length, chary, 0);
for (final char ch : chary) {
for (final char invalid : INVALID_GROUP_CHAR) {
if (ch == invalid) {
throw new InvalidConsumerConfigException("Group name has invalid character " + ch);
}
}
}
if (consumerConfig.getFetchRunnerCount() <= 0) {
throw new InvalidConsumerConfigException("Invalid fetchRunnerCount:" + consumerConfig.getFetchRunnerCount());
}
if (consumerConfig.getFetchTimeoutInMills() <= 0) {
throw new InvalidConsumerConfigException("Invalid fetchTimeoutInMills:"
+ consumerConfig.getFetchTimeoutInMills());
}
}