APISonar


org.apache.pulsar.common.functions.FunctionConfig.Runtime.JAVA

> org > apache > pulsar > common > functions > FunctionConfig > Runtime > JAVA
org APIs apache APIs pulsar APIs common APIs functions APIs FunctionConfig APIs Runtime APIs JAVA APIs

Example 1
public static FunctionConfig createDefaultFunctionConfig() {
        FunctionConfig functionConfig = new FunctionConfig();
        functionConfig.setTenant(tenant);
        functionConfig.setNamespace(namespace);
        functionConfig.setName(function);
        functionConfig.setClassName(className);
        functionConfig.setParallelism(parallelism);
        functionConfig.setCustomSerdeInputs(topicsToSerDeClassName);
        functionConfig.setOutput(outputTopic);
        functionConfig.setOutputSerdeClassName(outputSerdeClassName);
        functionConfig.setRuntime(FunctionConfig.Runtime.JAVA);
        return functionConfig;
    }