private void read(ReactorChannel reactorChannel) { int ret; /* read until no more to read */ if (reactorChannel != null) { while ((ret = reactorChannel.dispatch(_dispatchOptions, _errorInfo)) > 0) {} if (ret == ReactorReturnCodes.FAILURE) { if (reactorChannel.state() != ReactorChannel.State.CLOSED && reactorChannel.state() != ReactorChannel.State.DOWN_RECONNECTING) { System.out.println("ReactorChannel dispatch failed: " + ret + "(" + _errorInfo.error().text() + ")"); closeReactor(); System.exit(ReactorReturnCodes.FAILURE); } } } }
while ((ret = reactorChnl.dispatch(dispatchOptions, errorInfo)) > 0) {} if (ret == ReactorReturnCodes.FAILURE)
_userLock.lock(); try{ ret = ((ReactorChannel) key.attachment()).dispatch(_rsslDispatchOptions, _rsslErrorInfo);
_userLock.lock(); try{ ret = ((ReactorChannel) key.attachment()).dispatch(_rsslDispatchOptions, _rsslErrorInfo);
while ((ret = reactorChnl.dispatch(dispatchOptions, errorInfo)) > 0) {} if (ret == ReactorReturnCodes.FAILURE)
while ((ret = reactorChnl.dispatch(dispatchOptions, errorInfo)) > 0) {} if (ret == ReactorReturnCodes.FAILURE)
while ((ret = reactorChnl.dispatch(_dispatchOptions, _errorInfo)) > 0) {} if (ret == ReactorReturnCodes.FAILURE)
while ((ret = reactorChnl.dispatch(dispatchOptions, errorInfo)) > 0) {} if (ret == ReactorReturnCodes.FAILURE)
while ((ret = rc.dispatch(dispatchOptions, errorInfo)) > ReactorReturnCodes.SUCCESS)
while ((ret = reactorChnl.dispatch(_dispatchOptions, _errorInfo)) > 0 && !shutdown()) {} if (ret == ReactorReturnCodes.FAILURE)
assertEquals(ReactorReturnCodes.PARAMETER_OUT_OF_RANGE, dispatchOptions.maxMessages(0)); assertEquals(ReactorReturnCodes.SUCCESS, dispatchOptions.maxMessages(1)); assertEquals(ReactorReturnCodes.FAILURE, theReactorChannel.dispatch(dispatchOptions, errorInfo));
assertEquals(0, rc.dispatch(dispatchOptions, errorInfo));