public DisruptorBuilder<T> setEventFactory(final EventFactory<T> eventFactory) {
        this.eventFactory = eventFactory;
        return this;
    }
A builder to build a disruptor instance.
@author boyan(boyan@antfin.com)
jraft-core/src/main/java/com/alipay/sofa/jraft/util/DisruptorBuilder.java