class ConsumerBuilder extends AbstractReferenceBuilder<ConsumerConfig, ConsumerBuilder> {

    public ConsumerConfig build() {
        ConsumerConfig consumer = new ConsumerConfig();
        super.build(consumer);

        consumer.setDefault(isDefault);
        consumer.setClient(client);
        consumer.setThreadpool(threadpool);
        consumer.setCorethreads(corethreads);
        consumer.setThreads(threads);
        consumer.setQueues(queues);
        consumer.setShareconnections(shareconnections);

        return consumer;
    }

}