The below code snippet is from the Consumer Value Add example. On Executing this, looks like the reactor dispatches the messages after every 10 seconds. But doesn't look like it is configured in the example code. I wanted to ask if this Reactor's implicit behavior to dispatch the messages after every 10 seconds or this can be controlled by the API user?
// dispatch until no more messages
while ((ret = reactorChnl.dispatch(dispatchOptions, errorInfo)) > 0) {}
if (ret == ReactorReturnCodes.FAILURE)
{
if (reactorChnl.state() != ReactorChannel.State.CLOSED &&
reactorChnl.state() != ReactorChannel.State.DOWN_RECONNECTING)
{
System.out.println("ReactorChannel dispatch failed: " + ret + "(" + errorInfo.error().text() + ")");
uninitialize();
System.exit(ReactorReturnCodes.FAILURE);
}
}