io.rtdi.bigdata.connector.pipeline.foundation.TopicUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pipelinefoundation Show documentation
Show all versions of pipelinefoundation Show documentation
The abstraction of an Apache Kafka-like Pipeline and common classes/interfaces.
package io.rtdi.bigdata.connector.pipeline.foundation;
import io.rtdi.bigdata.connector.pipeline.foundation.exceptions.PropertiesException;
/**
* Some helper methods around topics
*
*/
public class TopicUtil {
public static String validate(String s) throws PropertiesException {
if (s == null) {
return s;
} else if (s.contains("-")) {
throw new PropertiesException("A - char is not allowed in the topic name parts (" + s + ")");
// } else if (s.contains(".")) {
// throw new PropertiesException("A . char is not allowed in the topic name parts (" + s + ")");
} else {
return s;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy