public static DatasourceDependencyBuilder kafkaDependency(final List<Datasource> datasources) {
        return new DatasourceDependencyBuilder()
                .withDatasources(datasources)
                .withType(DatasourceDependency.TYPE_QUEUE)
                .withSubtype(DatasourceDependency.SUBTYPE_KAFKA);
    }
public static DatasourceDependencyBuilder kafkaDependency ( final List < Datasource > datasources ) { return new DatasourceDependencyBuilder ( ) . withDatasources ( datasources ) . withType ( DatasourceDependency . TYPE_QUEUE ) . withSubtype ( DatasourceDependency . SUBTYPE_KAFKA ) ; }
Creates a ServiceDependencyBuilder with type="queue" and subtype="Kafka".

@param datasources the datasources of the accessed queue.
@return builder used to configure Kafka datasource dependencies