int sendAndHandleDictionaryMsgCallback(String location, ReactorChannel reactorChannel, TransportBuffer transportBuffer, Msg msg, DictionaryMsg dictionaryMsg, WatchlistStreamInfo streamInfo, ReactorErrorInfo errorInfo) { int retval = sendDictionaryMsgCallback(reactorChannel, transportBuffer, msg, dictionaryMsg, streamInfo); // check return code from callback. if (retval == ReactorCallbackReturnCodes.FAILURE) { populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "ReactorCallbackReturnCodes.FAILURE was returned from rdmDictionaryMsgCallback(). This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } else if (retval != ReactorCallbackReturnCodes.RAISE && retval != ReactorCallbackReturnCodes.SUCCESS) { // retval is not a valid ReactorReturnCodes. populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "retval of " + retval + " was returned from rdmDictionaryMsgCallback() and is not a valid ReactorCallbackReturnCodes. This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } return retval; }
private int sendAndHandleDictionaryMsgCallback(String location, ReactorChannel reactorChannel, TransportBuffer transportBuffer, Msg msg, DictionaryMsg dictionaryMsg, ReactorErrorInfo errorInfo) { int retval = sendDictionaryMsgCallback(reactorChannel, transportBuffer, msg, dictionaryMsg, null); // check return code from callback. if (retval == ReactorCallbackReturnCodes.FAILURE) { populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "ReactorCallbackReturnCodes.FAILURE was returned from rdmDictionaryMsgCallback(). This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } else if (retval != ReactorCallbackReturnCodes.RAISE && retval != ReactorCallbackReturnCodes.SUCCESS) { // retval is not a valid ReactorReturnCodes. populateErrorInfo(errorInfo, ReactorReturnCodes.FAILURE, location, "retval of " + retval + " was returned from rdmDictionaryMsgCallback() and is not a valid ReactorCallbackReturnCodes. This caused the Reactor to shutdown."); shutdown(errorInfo); return ReactorReturnCodes.FAILURE; } return retval; }