iron-spi-aws/src/main/java/io/axway/iron/spi/aws/kinesis/AwsKinesisTransactionStore.java
private boolean waitTheMinimalDurationToExecuteTheNextProvisioningRequest() {
        if (m_lastGetShardIteratorRequestTime != null) {
            long delay = m_durationBetweenRequests.get() - (System.currentTimeMillis() - m_lastGetShardIteratorRequestTime);
            if (delay > 0) {
                try {
                    Thread.sleep(delay);
                } catch (InterruptedException e) {
                    Thread.currentThread().interrupt();
                    return false;
                }
            }
        }
        m_lastGetShardIteratorRequestTime = System.currentTimeMillis();
        return true;
    }
private boolean waitTheMinimalDurationToExecuteTheNextProvisioningRequest() {
        if (m_lastGetShardIteratorRequestTime != null) {
            long delay = m_durationBetweenRequests.get() - (System.currentTimeMillis() - m_lastGetShardIteratorRequestTime);
            if (delay > 0) {
                try {
                    Thread.sleep(delay);
                } catch (InterruptedException e) {
                    Thread.currentThread().interrupt();
                    return false;
                }
            }
        }
        m_lastGetShardIteratorRequestTime = System.currentTimeMillis();
        return true;
    }
Wait that the minimum duration between two GetShardIteratorRequests has elapsed.

@return true if the duration elapsed, false if the thread has been interrupted