try
{
DbusEventBufferBatchReadable bufRead = v2Mode
? _eventBuffer.getDbusEventBufferBatchReadable(sourceIds, cpMult, statsCollectors)
: _eventBuffer.getDbusEventBufferBatchReadable(cpMult, ppartKeys, statsCollectors);
int eventsRead = 0;
int minPendingEventSize = 0;
StreamEventsResult result = null;
bufRead.setClientMaxEventVersion(clientEventVersion);
if (v2Mode)
{
result = bufRead.streamEvents(streamFromLatestSCN, fetchSize,
request.getResponseContent(), enc, filters);
eventsRead = result.getNumEventsStreamed();
minPendingEventSize = result.getSizeOfPendingEvent();
if(isDebug) {
LOG.debug("Process: streamed " + eventsRead + " from sources " +
Arrays.toString(sourceIds.toArray()));
LOG.debug("CP=" + cpMult); //can be used for debugging to stream from a cp
}
//if (null != statsCollectors) statsCollectors.mergeStatsCollectors();
}
else
{
result = bufRead.streamEvents(streamFromLatestSCN, fetchSize,
request.getResponseContent(), enc, filters);
eventsRead = result.getNumEventsStreamed();
minPendingEventSize = result.getSizeOfPendingEvent();
if(isDebug)
LOG.debug("Process: streamed " + eventsRead + " with subscriptions " + subs);
cpMult = bufRead.getCheckpointMult();
if (cpMult != null) {
request.setCursorPartition(cpMult.getCursorPartition());
}
}