final CountingConsumer countingConsumer = new CountingConsumer();
//Set maxSize to 100K, maxEventSize to 15k, set init readBufferSize to maxEventSize/2
int maxEventSize=15*1024;
int initReadBufferSize=maxEventSize/2;
DatabusSourcesConnection clientConn = RelayEventProducer
.createDatabusSourcesConnection("testProducer", serverName,
srcSubscriptionString, countingConsumer,
100 * 1024 , maxEventSize, 30 * 1000, 100, 30 * 1000,
1, true,initReadBufferSize);
cr = new ClientRunner(clientConn);