Interface StreamProxy

    • Method Detail

      • getStreamDescriptionSummary

        software.amazon.awssdk.services.kinesis.model.StreamDescriptionSummary getStreamDescriptionSummary​(String streamArn)
        Obtains stream metadata.
        Parameters:
        streamArn - the ARN of the stream
        Returns:
        stream information.
      • listShards

        List<software.amazon.awssdk.services.kinesis.model.Shard> listShards​(String streamArn,
                                                                             ListShardsStartingPosition startingPosition)
        Obtains the shards associated with a given stream.
        Parameters:
        streamArn - the ARN of the stream
        startingPosition - starting position for shard discovery request. Used to skip already discovered/not used shards
        Returns:
        shard list
      • getRecords

        software.amazon.awssdk.services.kinesis.model.GetRecordsResponse getRecords​(String streamArn,
                                                                                    String shardId,
                                                                                    StartingPosition startingPosition,
                                                                                    int maxRecordsToGet)
        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
        maxRecordsToGet - the maximum amount of records to retrieve for this batch
        Returns:
        the response with records. Includes both the returned records and the subsequent shard iterator to use.
      • registerStreamConsumer

        software.amazon.awssdk.services.kinesis.model.RegisterStreamConsumerResponse registerStreamConsumer​(String streamArn,
                                                                                                            String consumerName)
        Registers an enhanced fan-out consumer against the stream.
        Parameters:
        streamArn - the ARN of the stream
        consumerName - the consumerName
        Returns:
        the register stream consumer response
      • deregisterStreamConsumer

        software.amazon.awssdk.services.kinesis.model.DeregisterStreamConsumerResponse deregisterStreamConsumer​(String consumerArn)
        De-registers an enhanced fan-out consumer against the stream.
        Parameters:
        consumerArn - the ARN of the consumer to deregister
        Returns:
        the de-register stream consumer response
      • describeStreamConsumer

        software.amazon.awssdk.services.kinesis.model.DescribeStreamConsumerResponse describeStreamConsumer​(String streamArn,
                                                                                                            String consumerName)
        Describe stream consumer.
        Parameters:
        streamArn - the ARN of the Kinesis stream
        consumerName - the name of the Kinesis consumer
        Returns:
        the describe stream consumer response