Class SqsSourceSettings
Inheritance
SqsSourceSettings
Assembly: Akka.Streams.SQS.dll
Syntax
public sealed class SqsSourceSettings
Constructors
|
Improve this Doc
View Source
SqsSourceSettings(TimeSpan, Int32, Int32, Int32, IReadOnlyList<AttributeName>, IReadOnlyList<MessageAttributeName>, Boolean, Nullable<TimeSpan>)
Declaration
public SqsSourceSettings(TimeSpan waitTime, int maxBufferSize, int parallelism, int maxBatchSize, IReadOnlyList<AttributeName> attributeNames, IReadOnlyList<MessageAttributeName> messageAttributeNames, bool closeOnEmptyReceive, TimeSpan? visibilityTimeout)
Parameters
Properties
|
Improve this Doc
View Source
AttributeNames
Declaration
public IReadOnlyList<AttributeName> AttributeNames { get; }
Property Value
|
Improve this Doc
View Source
CloseOnEmptyReceive
Declaration
public bool CloseOnEmptyReceive { get; }
Property Value
|
Improve this Doc
View Source
Default
Declaration
public static SqsSourceSettings Default { get; }
Property Value
|
Improve this Doc
View Source
MaxBatchSize
Declaration
public int MaxBatchSize { get; }
Property Value
|
Improve this Doc
View Source
MaxBufferSize
Declaration
public int MaxBufferSize { get; }
Property Value
|
Improve this Doc
View Source
MessageAttributeNames
Declaration
public IReadOnlyList<MessageAttributeName> MessageAttributeNames { get; }
Property Value
|
Improve this Doc
View Source
Parallelism
Declaration
public int Parallelism { get; }
Property Value
|
Improve this Doc
View Source
VisibilityTimeout
Declaration
public TimeSpan? VisibilityTimeout { get; }
Property Value
|
Improve this Doc
View Source
WaitTime
Declaration
public TimeSpan WaitTime { get; }
Property Value
Methods
|
Improve this Doc
View Source
Copy(Nullable<TimeSpan>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, IReadOnlyList<AttributeName>, IReadOnlyList<MessageAttributeName>, Nullable<Boolean>, Nullable<TimeSpan>)
Declaration
public SqsSourceSettings Copy(TimeSpan? waitTime = default(TimeSpan? ), int? maxBufferSize = default(int? ), int? parallelism = default(int? ), int? maxBatchSize = default(int? ), IReadOnlyList<AttributeName> attributeNames = null, IReadOnlyList<MessageAttributeName> messageAttributeNames = null, bool? closeOnEmptyReceive = default(bool? ), TimeSpan? visibilityTimeout = default(TimeSpan? ))
Parameters
Returns
|
Improve this Doc
View Source
WithAttributes(AttributeName[])
Declaration
public SqsSourceSettings WithAttributes(params AttributeName[] attributes)
Parameters
Returns
|
Improve this Doc
View Source
WithCloseOnEmptyReceive(Boolean)
If true, the source completes when no messages are available.
Default: false.
Declaration
public SqsSourceSettings WithCloseOnEmptyReceive(bool enable)
Parameters
Type |
Name |
Description |
Boolean |
enable |
|
Returns
|
Improve this Doc
View Source
WithMaxBatchSize(Int32)
The maximum number of messages to return (see MaxNumberOfMessages in AWS docs).
Default: 10 messages
Declaration
public SqsSourceSettings WithMaxBatchSize(int maxBatchSize)
Parameters
Type |
Name |
Description |
Int32 |
maxBatchSize |
|
Returns
|
Improve this Doc
View Source
WithMaxBufferSize(Int32)
Internal buffer size used by the Source.
Default: 100 messages
Declaration
public SqsSourceSettings WithMaxBufferSize(int maxBufferSize)
Parameters
Type |
Name |
Description |
Int32 |
maxBufferSize |
|
Returns
|
Improve this Doc
View Source
WithMessageAttributes(MessageAttributeName[])
Declaration
public SqsSourceSettings WithMessageAttributes(params MessageAttributeName[] attributes)
Parameters
Returns
|
Improve this Doc
View Source
WithVisibilityTimeout(TimeSpan)
The period of time (in seconds) during which Amazon SQS prevents other consumers
from receiving and processing an already received message (see Amazon SQS doc)
Default: None - taken from the SQS queue configuration
Declaration
public SqsSourceSettings WithVisibilityTimeout(TimeSpan timeout)
Parameters
Returns
|
Improve this Doc
View Source
WithWaitTime(TimeSpan)
The duration in seconds for which the call waits for a message to arrive in the queue before returning.
(see WaitTimeSeconds in AWS docs).
Default: 20 seconds
Declaration
public SqsSourceSettings WithWaitTime(TimeSpan waitTime)
Parameters
Returns