Class ShardSettings
Inheritance
ShardSettings
Assembly: Akka.Streams.Kinesis.dll
Syntax
public sealed class ShardSettings
Constructors
|
Improve this Doc
View Source
ShardSettings(String, String, ShardIteratorType, TimeSpan, Int32, String, Nullable<DateTime>)
Declaration
public ShardSettings(string streamName, string shardId, ShardIteratorType shardIteratorType, TimeSpan refreshInterval, int limit, string startingSequenceNumber = null, DateTime? atTimestamp = default(DateTime? ))
Parameters
Properties
|
Improve this Doc
View Source
AtTimestamp
Declaration
public DateTime? AtTimestamp { get; }
Property Value
|
Improve this Doc
View Source
Limit
KinesisSource is polling Amazon Kinesis in batches. This value must be between 0 and 10 000.
Default value: 500
Declaration
public int Limit { get; }
Property Value
|
Improve this Doc
View Source
RefreshInterval
KinesisSource is polling Amazon Kinesis accordingly to a given interval.
Default value: 1 second.
Declaration
public TimeSpan RefreshInterval { get; }
Property Value
|
Improve this Doc
View Source
ShardId
Shard identifier for a given stream. To merge data from multiple kinesis shards,
you can use Akka.Streams.Dsl.SourceOperations.Merge``3(Akka.Streams.Dsl.Source{``0,``2},Akka.Streams.IGraph{Akka.Streams.SourceShape{``1},``2},System.Boolean) method.
Declaration
public string ShardId { get; }
Property Value
|
Improve this Doc
View Source
ShardIteratorType
Type of shard iterator defined for Amazon Kinesis client.
Default value: Amazon.Kinesis.ShardIteratorType.LATEST
Declaration
public ShardIteratorType ShardIteratorType { get; }
Property Value
Type |
Description |
Amazon.Kinesis.ShardIteratorType |
|
|
Improve this Doc
View Source
StartingSequenceNumber
A starting sequence number, from which the source should continue fetching the data.
Default value: null
Declaration
public string StartingSequenceNumber { get; }
Property Value
|
Improve this Doc
View Source
StreamName
Name of a stream to start receiving data from.
Declaration
public string StreamName { get; }
Property Value
Methods
|
Improve this Doc
View Source
Create(String, String)
Declaration
public static ShardSettings Create(string streamName, string shardId)
Parameters
Type |
Name |
Description |
String |
streamName |
Name of Amazon Kinesis stream. It must be already present.
|
String |
shardId |
Name of an Amazon Kinesis shard in context of stream with provided streamName .
|
Returns
|
Improve this Doc
View Source
WithAtTimestamp(DateTime)
Declaration
public ShardSettings WithAtTimestamp(DateTime atTimestamp)
Parameters
Type |
Name |
Description |
DateTime |
atTimestamp |
|
Returns
|
Improve this Doc
View Source
WithLimit(Int32)
Declaration
public ShardSettings WithLimit(int limit)
Parameters
Type |
Name |
Description |
Int32 |
limit |
|
Returns
|
Improve this Doc
View Source
WithRefreshInterval(TimeSpan)
Declaration
public ShardSettings WithRefreshInterval(TimeSpan refreshInterval)
Parameters
Type |
Name |
Description |
TimeSpan |
refreshInterval |
|
Returns
|
Improve this Doc
View Source
WithShardIteratorType(ShardIteratorType)
Declaration
public ShardSettings WithShardIteratorType(ShardIteratorType shardIteratorType)
Parameters
Type |
Name |
Description |
Amazon.Kinesis.ShardIteratorType |
shardIteratorType |
|
Returns
|
Improve this Doc
View Source
WithStartingSequenceNumber(String)
Declaration
public ShardSettings WithStartingSequenceNumber(string startingSequenceNumber)
Parameters
Type |
Name |
Description |
String |
startingSequenceNumber |
|
Returns