if (null == connConfig)
connConfig = _client.getClientStaticConfig().getConnectionDefaults();
DbusEventBuffer eventBuffer = null;
{
DbusEventBuffer.StaticConfig cfg = connConfig.getEventBuffer();
eventBuffer = new DbusEventBuffer(cfg.getMaxSize(),
cfg.getMaxIndividualBufferSize(),
cfg.getScnIndexSize(),
cfg.getReadBufferSize(),
cfg.getMaxEventSize(),
cfg.getAllocationPolicy(),
new File(cfg.getMmapDirectory().getAbsolutePath() + "_stream_" + _id),
cfg.getQueuePolicy(),
cfg.getTrace(),
null,
cfg.getAssertLevel(),
cfg.getBufferRemoveWaitPeriod(),
cfg.getRestoreMMappedBuffers(),
cfg.getRestoreMMappedBuffersValidateEvents(),
cfg.isEnableScnIndex(),
_client.getEventFactory());
eventBuffer.setDropOldEvents(true);
eventBuffer.start(0);
}
DbusEventBuffer bootstrapBuffer = null;
if (enableBootstrap && canConsumerBootstrap)
{
DbusEventBuffer.StaticConfig bstCfg = connConfig.getBstEventBuffer();
bootstrapBuffer = new DbusEventBuffer(bstCfg.getMaxSize(),
bstCfg.getMaxIndividualBufferSize(),
bstCfg.getScnIndexSize(),
bstCfg.getReadBufferSize(),
bstCfg.getMaxEventSize(),
bstCfg.getAllocationPolicy(),
new File(bstCfg.getMmapDirectory().getAbsolutePath() + "_bootstrap_" + _id ),
bstCfg.getQueuePolicy(),
bstCfg.getTrace(),
null,
bstCfg.getAssertLevel(),
bstCfg.getBufferRemoveWaitPeriod(),
bstCfg.getRestoreMMappedBuffers(),
bstCfg.getRestoreMMappedBuffersValidateEvents(),
bstCfg.isEnableScnIndex(),
_client.getEventFactory());
bootstrapBuffer.setDropOldEvents(false);
bootstrapBuffer.start(0);
}
List<DatabusSubscription> subs = createSubscriptions(_sources);
if (null != _checkpointPersistenceProvider && _client.getClientStaticConfig().getCheckpointPersistence().isClearBeforeUse())