Package com.linkedin.databus.client

Examples of com.linkedin.databus.client.SingleSourceSCN


    @Override
    public ConsumerCallbackResult onRollback(SCN startScn)
    {
      if (startScn instanceof SingleSourceSCN)
      {
        SingleSourceSCN s = (SingleSourceSCN)startScn;
        _rollbackScn = s.getSequence();
      } else {
        throw new RuntimeException("SCN not instance of SingleSourceSCN");
      }
      return super.onRollback(startScn);
    }
View Full Code Here


    @Override
    public ConsumerCallbackResult onRollback(SCN startScn)
    {
      if (startScn instanceof SingleSourceSCN)
      {
        SingleSourceSCN s = (SingleSourceSCN)startScn;
        _rollbackScn = s.getSequence();
      } else {
        throw new RuntimeException("SCN not instance of SingleSourceSCN");
      }
      return super.onRollback(startScn);
    }
View Full Code Here

            null,
            null);
    callback.setSourceMap(sourcesMap);

    callback.onStartConsumption();
    callback.onStartDataEventSequence(new SingleSourceSCN(1, 1));
    for (int i = 0; i < 10000; ++i)
    {
      callback.onDataEvent(event1, null);
    }
    callback.onEndDataEventSequence(new SingleSourceSCN(1, 1));
    callback.onStopConsumption();

    System.out.println("max threads=" + executor.getLargestPoolSize() + " task count=" + executor.getTaskCount());
    System.out.println("dataEventsReceived=" + consumerStatsCollector.getNumDataEventsReceived() +
                       " sysEventsReceived=" + consumerStatsCollector.getNumSysEventsReceived()  +
View Full Code Here

TOP

Related Classes of com.linkedin.databus.client.SingleSourceSCN

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.