Class KrpcGenerator

java.lang.Object
io.kroxylicious.krpccodegen.main.KrpcGenerator

public class KrpcGenerator extends Object
Code generator driven by Apache Kafka message specifications definitions.
  • Method Details

    • single

      public static KrpcGenerator.Builder single()
      Constructs a generator in single mode. The generator passes a list of all message specifications to the template which is used to produce a single output file.
      Returns:
      the builder
    • multi

      public static KrpcGenerator.Builder multi()
      Constructs a generator in multi-mode. The generator each message specification to the generator in turn, each of which produces a distinct output file.
      Returns:
      the builder
    • generate

      public void generate() throws Exception
      Generates the sources.
      Throws:
      Exception - exception during source generation.