GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: Implement SubscriberShutdownSettings by michaelpri10 · Pull Request #2569 · googleapis/java-pubsub

This repository was archived by the owner on Aug 13, 2026. It is now read-only.

Conversation

@michaelpri10

@michaelpri10 michaelpri10 commented Sep 30, 2025

Copy link
Copy Markdown
Contributor

Implements subscriber shutdown options for the Java client library. This provides more control over the shutdown process:

  • The subscriber stream is closed immediately.
  • If the behaviour is set to NACK_IMMEDIATELY, then all buffered messages are nacked, and the timeout specifies how long to wait for them to go through.
  • If the behaviour is set to WAIT_FOR_PROCESSING, then the remaining message machinery continues until the timeout is almost up, and then it switches to NACK_IMMEDIATELY.
  • If the timeout is zero, everything closes down immediately, as quickly as possible.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@michaelpri10
feat: Implement SubscriberShutdownSettings
a9785b1
chore: Format and cleanup sample

chore: Remove hardcoded version from samples pom.xml
@michaelpri10
michaelpri10 requested review from a team September 30, 2025 20:58
@product-auto-label product-auto-label Bot added size: l Pull request size is large. api: pubsub Issues related to the googleapis/java-pubsub API. labels Sep 30, 2025
@michaelpri10
michaelpri10 requested a review from feywind September 30, 2025 20:58
feywind
feywind previously approved these changes Oct 3, 2025
View reviewed changes

@feywind feywind left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic looks good! I don't know as much about the Java library specifics, but I didn't see anything weird.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@michaelpri10
fix: Fix typo in Subscriber class comments
cac469e
@michaelpri10
michaelpri10 dismissed feywind’s stale review via cac469e October 6, 2025 15:52
@michaelpri10
michaelpri10 requested a review from feywind October 6, 2025 16:25
feywind
feywind approved these changes Oct 7, 2025
View reviewed changes
@michaelpri10
michaelpri10 merged commit 8195f6f into googleapis:main Oct 7, 2025
@michaelpri10 michaelpri10 mentioned this pull request Oct 8, 2025
fix: Update .OwlBot-hermetic.yaml to preserve SubscriberShutdownSettings files #2583
Merged
@release-please release-please Bot mentioned this pull request Oct 17, 2025
chore(main): release 1.143.0 #2591
Merged
@release-please release-please Bot mentioned this pull request Dec 15, 2025
chore(protobuf-4.x-rc): release 1.145.0-rc1 #2629
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@feywind feywind feywind approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: pubsub Issues related to the googleapis/java-pubsub API. size: l Pull request size is large.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@michaelpri10 @feywind
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.