public SimpleHttpConsumer(final HttpClientConfig config) {
super(config);
this.config = config;
this.subscribeInfoManager = new SubscribeInfoManager();
this.offsetStorage = new MysqlOffsetStorage(config.getDataSource());
this.recoverStorageManager = new RecoverStorageManager(new MetaClientConfig(), this.subscribeInfoManager);
this.scheduledExecutorService = Executors.newSingleThreadScheduledExecutor();
this.scheduledExecutorService.scheduleAtFixedRate(new Runnable() {
@Override
public void run() {
SimpleHttpConsumer.this.commitOffsets();