Interface RateLimitPolicy

    • Method Detail

      • onSuccess

        default void onSuccess​(java.util.List<KinesisRecord> records)
                        throws java.lang.InterruptedException
        Called after Kinesis records are successfully retrieved.
        Parameters:
        records - The list of retrieved records.
        Throws:
        java.lang.InterruptedException
      • onThrottle

        default void onThrottle​(KinesisClientThrottledException e)
                         throws java.lang.InterruptedException
        Called after the Kinesis client is throttled.
        Parameters:
        e - The KinesisClientThrottledException thrown by the client.
        Throws:
        java.lang.InterruptedException