private void checkForBlockedToDriverCommands(final long nowNs) { final long consumerPosition = toDriverCommands.consumerPosition(); if (consumerPosition == lastConsumerCommandPosition) { if (toDriverCommands.producerPosition() > consumerPosition && ((timeOfLastToDriverPositionChangeNs + clientLivenessTimeoutNs) - nowNs < 0)) { if (toDriverCommands.unblock()) { ctx.systemCounters().get(UNBLOCKED_COMMANDS).incrementOrdered(); } } } else { timeOfLastToDriverPositionChangeNs = nowNs; lastConsumerCommandPosition = consumerPosition; } }
timeOfLastTimerCheckNs = nowNs; timeOfLastToDriverPositionChangeNs = nowNs; lastConsumerCommandPosition = toDriverCommands.consumerPosition();
private void checkForBlockedToDriverCommands(final long nowNs) { final long consumerPosition = toDriverCommands.consumerPosition(); if (consumerPosition == lastConsumerCommandPosition) { if (toDriverCommands.producerPosition() > consumerPosition && ((timeOfLastToDriverPositionChangeNs + clientLivenessTimeoutNs) - nowNs < 0)) { if (toDriverCommands.unblock()) { ctx.systemCounters().get(UNBLOCKED_COMMANDS).incrementOrdered(); } } } else { timeOfLastToDriverPositionChangeNs = nowNs; lastConsumerCommandPosition = consumerPosition; } }
private void checkForBlockedToDriverCommands(final long nowNs) { final long consumerPosition = toDriverCommands.consumerPosition(); if (consumerPosition == lastConsumerCommandPosition) { if (toDriverCommands.producerPosition() > consumerPosition && ((timeOfLastToDriverPositionChangeNs + clientLivenessTimeoutNs) - nowNs < 0)) { if (toDriverCommands.unblock()) { ctx.systemCounters().get(UNBLOCKED_COMMANDS).incrementOrdered(); } } } else { timeOfLastToDriverPositionChangeNs = nowNs; lastConsumerCommandPosition = consumerPosition; } }
timeOfLastTimerCheckNs = nowNs; timeOfLastToDriverPositionChangeNs = nowNs; lastConsumerCommandPosition = toDriverCommands.consumerPosition();
timeOfLastTimerCheckNs = nowNs; timeOfLastToDriverPositionChangeNs = nowNs; lastConsumerCommandPosition = toDriverCommands.consumerPosition();