Package com.linkedin.databus.client.pub

Examples of com.linkedin.databus.client.pub.ConsumerCallbackResult


      success = false;
      _log.error("START_STREAM_EVENT_WINDOW state expected but found : " + curState.getStateId());
    }
    else
    {
      ConsumerCallbackResult callbackResult = ConsumerCallbackResult.ERROR;
      try
      {
        callbackResult = getAsyncCallback().onStartDataEventSequence(curState.getStartWinScn());
      }
      catch (RuntimeException e)
View Full Code Here


      success = false;
      _log.error("END_STREAM_EVENT_WINDOW state expected but found :" + curState.getStateId());
    }
    else
    {
      ConsumerCallbackResult callbackResult = ConsumerCallbackResult.ERROR;
      try
      {
        callbackResult = getAsyncCallback().onEndDataEventSequence(curState.getEndWinScn());
      }
      catch (RuntimeException e)
View Full Code Here

      _log.error("START_STREAM_SOURCE state expected but found:" + curState.getStateId());
    }
    else
    {
      String sourceName = curState.getCurrentSource().getName();
      ConsumerCallbackResult callbackResult = ConsumerCallbackResult.ERROR;
      try
      {
        callbackResult = getAsyncCallback().onStartSource(sourceName, curState.getCurrentSourceSchema());
      }
      catch (RuntimeException e)
View Full Code Here

      _log.error("Missing source information in the current state");
    }
    else if (curState.getCurrentSource().getId() >= 0)
    {
      String sourceName = curState.getCurrentSource().getName();
      ConsumerCallbackResult callbackResult = ConsumerCallbackResult.ERROR;
      try
      {
        callbackResult = getAsyncCallback().onEndSource(sourceName, curState.getCurrentSourceSchema());
      }
      catch (RuntimeException e)
View Full Code Here

    if (debugEnabled) _log.debug("About to store checkpoint");

    boolean success = true;

    //processBatch - returns false ; then
    ConsumerCallbackResult callbackResult =
        getAsyncCallback().onCheckpoint(winScn);
    boolean persistCheckpoint = !ConsumerCallbackResult.isSkipCheckpoint(callbackResult) && ConsumerCallbackResult.isSuccess(callbackResult);
    if (persistCheckpoint)
    {
      if (null != getCheckpointPersistor())
View Full Code Here

    return true;
  }

  protected boolean processDataEvent(DispatcherState curState, DbusEvent event)
  {
    ConsumerCallbackResult callbackResult =
        getAsyncCallback().onDataEvent(event, curState.getEventDecoder());
    boolean success = ConsumerCallbackResult.isSuccess(callbackResult);

    if (!success)
    {
View Full Code Here

  protected boolean processDataEventsBatch(DispatcherState curState)
  {
    DbusPrettyLogUtils.logExceptionAtDebug("Flushing batched events",null,_log);

    ConsumerCallbackResult callbackResult = getAsyncCallback().flushCallQueue(-1);
    boolean success = ConsumerCallbackResult.isSuccess(callbackResult);
    if (! success)
    {
      _log.error("Error dispatching events, the consumer callback returned an error");
    }
View Full Code Here

    if (debugEnabled) _log.debug("Entered startDispatch");

    _asyncCallback.setSourceMap(_internalState.getSources());
    getStatus().start();

    ConsumerCallbackResult callbackResult = ConsumerCallbackResult.ERROR;
    try
    {
      callbackResult = _asyncCallback.onStartConsumption();
    }
    catch (RuntimeException e)
View Full Code Here

        _log.error("Null error event received at dispatcher");
      }
      else
      {
        _log.info("Delivering error event to consumers: " + errorEvent);
        ConsumerCallbackResult callbackResult = ConsumerCallbackResult.ERROR;
        try
        {
          callbackResult = _asyncCallback.onError(errorEvent.returnActualException());
        }
        catch (RuntimeException e)
View Full Code Here

  @Override
  public ConsumerCallbackResult onStartDataEventSequence(SCN startScn)
  {
    _srcRm.start();
    _totalNumEvents = 0;
    ConsumerCallbackResult success = ConsumerCallbackResult.SUCCESS;
    try
    {
      if (_oldWindowScn == -1)
      {
        initWindowScn();
View Full Code Here

TOP

Related Classes of com.linkedin.databus.client.pub.ConsumerCallbackResult

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.