class Amazonite::Kinesis::SubscribeToShardEvent

Overview

After you call SubscribeToShard, Kinesis Data Streams sends events of this type over an HTTP/2 connection to your consumer.

Included Modules

Defined in:

kinesis/subscribe_to_shard_event.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(records : Array(Record), continuation_sequence_number : String, millis_behind_latest : Int64, child_shards : Array(ChildShard) | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def child_shards : Array(ChildShard) | Nil #

The list of the child shards of the current shard, returned only at the end of the current shard.


[View source]
def child_shards=(child_shards : Array(ChildShard) | Nil) #

The list of the child shards of the current shard, returned only at the end of the current shard.


[View source]
def continuation_sequence_number : String #

Use this as SequenceNumber in the next call to SubscribeToShard, with StartingPosition set to AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER. Use ContinuationSequenceNumber for checkpointing because it captures your shard progress even when no data is written to the shard.


[View source]
def continuation_sequence_number=(continuation_sequence_number : String) #

Use this as SequenceNumber in the next call to SubscribeToShard, with StartingPosition set to AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER. Use ContinuationSequenceNumber for checkpointing because it captures your shard progress even when no data is written to the shard.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def millis_behind_latest : Int64 #

The number of milliseconds the read records are from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.


[View source]
def millis_behind_latest=(millis_behind_latest : Int64) #

The number of milliseconds the read records are from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.


[View source]
def records : Array(Record) #

[View source]
def records=(records : Array(Record)) #

[View source]
def validate! : Nil #

[View source]