Package org.apache.beam.sdk.io.aws2.sqs
Class SqsIO.Read
- java.lang.Object
-
- org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<SqsMessage>>
-
- org.apache.beam.sdk.io.aws2.sqs.SqsIO.Read
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.beam.sdk.transforms.display.HasDisplayData
- Enclosing class:
- SqsIO
public abstract static class SqsIO.Read extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<SqsMessage>>
APTransformto read/receive messages from SQS. SeeSqsIOfor more information on usage and configuration.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Read()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.beam.sdk.values.PCollection<SqsMessage>expand(org.apache.beam.sdk.values.PBegin input)SqsIO.ReadwithClientConfiguration(ClientConfiguration config)Configuration of SQS client.SqsIO.ReadwithMaxNumRecords(long maxNumRecords)Define the max number of records received by theSqsIO.Read.SqsIO.ReadwithMaxReadTime(org.joda.time.Duration maxReadTime)Define the max read time (duration) while theSqsIO.Readwill receive messages.SqsIO.ReadwithQueueUrl(java.lang.String queueUrl)Define the queueUrl used by theSqsIO.Readto receive messages from SQS.SqsIO.ReadwithSqsClientProvider(SqsClientProvider clientProvider)Deprecated.UsewithClientConfiguration(ClientConfiguration)instead.SqsIO.ReadwithSqsClientProvider(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials, java.lang.String region)Deprecated.UsewithClientConfiguration(ClientConfiguration)instead.SqsIO.ReadwithSqsClientProvider(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials, java.lang.String region, java.net.URI endpoint)Deprecated.UsewithClientConfiguration(ClientConfiguration)instead.
-
-
-
Method Detail
-
withMaxNumRecords
public SqsIO.Read withMaxNumRecords(long maxNumRecords)
Define the max number of records received by theSqsIO.Read. When the max number of records is lower thanLong.MAX_VALUE, theSqsIO.Readwill provide a boundedPCollection.
-
withMaxReadTime
public SqsIO.Read withMaxReadTime(org.joda.time.Duration maxReadTime)
Define the max read time (duration) while theSqsIO.Readwill receive messages. When this max read time is not null, theSqsIO.Readwill provide a boundedPCollection.
-
withQueueUrl
public SqsIO.Read withQueueUrl(java.lang.String queueUrl)
Define the queueUrl used by theSqsIO.Readto receive messages from SQS.
-
withSqsClientProvider
@Deprecated public SqsIO.Read withSqsClientProvider(SqsClientProvider clientProvider)
Deprecated.UsewithClientConfiguration(ClientConfiguration)instead. Alternatively you can configure a customClientBuilderFactoryinAwsOptions.
-
withSqsClientProvider
@Deprecated public SqsIO.Read withSqsClientProvider(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials, java.lang.String region)
Deprecated.UsewithClientConfiguration(ClientConfiguration)instead.
-
withSqsClientProvider
@Deprecated public SqsIO.Read withSqsClientProvider(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials, java.lang.String region, java.net.URI endpoint)
Deprecated.UsewithClientConfiguration(ClientConfiguration)instead.
-
withClientConfiguration
public SqsIO.Read withClientConfiguration(ClientConfiguration config)
Configuration of SQS client.
-
expand
public org.apache.beam.sdk.values.PCollection<SqsMessage> expand(org.apache.beam.sdk.values.PBegin input)
- Specified by:
expandin classorg.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<SqsMessage>>
-
-