Skip to content

Commit

Permalink
Add pipeline description
Browse files Browse the repository at this point in the history
  • Loading branch information
Amar3tto committed Feb 23, 2024
1 parent fd5ab2e commit 12f8e66
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Java/src/main/java/pubsub/ReadWithDeadLetterTopicPubSub.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@

import java.nio.charset.StandardCharsets;

/**
* Pipeline for reading messages from Google Cloud Pub/Sub, incorporating error handling through a
* dead-letter topic. The pipeline uses the {@code PubsubIO.readStrings()} transform to read
* messages from a specified subscription, and any parsing errors are captured and redirected to a
* dead-letter topic.
*/
public class ReadWithDeadLetterTopicPubSub {

public static final String ID_EXAMPLE_SUFFIX = "id=";
Expand Down

0 comments on commit 12f8e66

Please sign in to comment.