Class: HttpKinesis::GetRecordsResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/http-kinesis/get_records_response.rb

Overview

Encapsulation of the response from HttpKinesis::Client#get_records

Instance Attribute Summary collapse

Instance Attribute Details

#millis_behind_latestInteger (readonly)

Returns The number of milliseconds behind the latest record written to the stream.

Returns:

  • (Integer)

    The number of milliseconds behind the latest record written to the stream


8
9
10
# File 'lib/http-kinesis/get_records_response.rb', line 8

def millis_behind_latest
  @millis_behind_latest
end

#next_shard_iteratorString (readonly)

Returns The shard iterator to use in the next call to get_records.

Returns:

  • (String)

    The shard iterator to use in the next call to get_records


8
9
10
# File 'lib/http-kinesis/get_records_response.rb', line 8

def next_shard_iterator
  @next_shard_iterator
end

#recordsArray<RetrievedRecord> (readonly)

Returns Data records returned by Kinesis.

Returns:


8
9
10
# File 'lib/http-kinesis/get_records_response.rb', line 8

def records
  @records
end