public synchronized boolean maybeUpdateGetRequestTimestamp(long currentTime) {
        long lastRequestTimestamp = Math.max(lastGetRequestTimestamp, lastPushRequestTimestamp);
        long timeElapsedSinceLastMsg = currentTime - lastRequestTimestamp;
        if (timeElapsedSinceLastMsg >= pushIntervalMs) {
            lastGetRequestTimestamp = currentTime;
            return true;
        }
        return false;
    }
@Test
    public void testMaybeUpdateGetRequestAfterElapsedTimeValid() {
        assertTrue(clientInstance.maybeUpdateGetRequestTimestamp(System.currentTimeMillis() - ClientMetricsConfigs.DEFAULT_INTERVAL_MS));
        // Second request should be accepted as time since last request is greater than the push interval.
        assertTrue(clientInstance.maybeUpdateGetRequestTimestamp(System.currentTimeMillis()));
    }