Interface StreamProxy

    • Method Detail

      • listShards

        List<software.amazon.awssdk.services.kinesis.model.Shard> listShards​(String streamArn,
                                                                             @Nullable
                                                                             String lastSeenShardId)
        Obtains the shards associated with a given stream.
        Parameters:
        streamArn - the ARN of the stream
        lastSeenShardId - the last seen shard Id. Used for reducing the number of results returned.
        Returns:
        shard list
      • getRecords

        software.amazon.awssdk.services.kinesis.model.GetRecordsResponse getRecords​(String streamArn,
                                                                                    String shardId,
                                                                                    StartingPosition startingPosition)
        Retrieves records from the stream.
        Parameters:
        streamArn - the ARN of the stream
        shardId - the shard to subscribe from
        startingPosition - the starting position to read from
        Returns:
        the response with records. Includes both the returned records and the subsequent shard iterator to use.