Skip to content

Adding subscription factory on Pub / Sub client. - #3370

Merged
tseaver merged 2 commits into
googleapis:masterfrom
dhermes:fix-3369
May 16, 2017
Merged

Adding subscription factory on Pub / Sub client.#3370
tseaver merged 2 commits into
googleapis:masterfrom
dhermes:fix-3369

Conversation

@dhermes

Copy link
Copy Markdown
Contributor

@dhermesdhermes added the api: pubsub Issues related to the Pub/Sub API. label May 4, 2017
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label May 4, 2017
return Subscription(
name, ack_deadline=ack_deadline, push_endpoint=push_endpoint,
retain_acked_messages=retain_acked_messages,
message_retention_duration=message_retention_duration, client=self)

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@dhermes

Copy link
Copy Markdown
ContributorAuthor

@tseaver@lukesneeringer@jonparrott Can you weigh in on this feature?

"""Subscription factory."""
SUBSCRIPTION_NAME = 'subscription_factory-%d' % (_millis(),)

# [START client_subscription]

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

return Subscription(
name, ack_deadline=ack_deadline, push_endpoint=push_endpoint,
retain_acked_messages=retain_acked_messages,
message_retention_duration=message_retention_duration, client=self)

This comment was marked as spam.

@lukesneeringer

Copy link
Copy Markdown
Contributor

As a note, we are about to do a huge rewrite on this, so this PR is going to be moot soon.

@kir-titievsky

kir-titievsky commented May 10, 2017 via email

Copy link
Copy Markdown

@dhermes

Copy link
Copy Markdown
ContributorAuthor

@kir-titievsky@lukesneeringer Let's just merge this as-is (without topic or topic_name)? (Can sort out the rewrite after the fact.)

@lukesneeringerlukesneeringer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Agreed. Merge it.

@tseaver
tseaver merged commit 469d675 into googleapis:masterMay 16, 2017
@dhermes
dhermes deleted the fix-3369 branch May 16, 2017 16:46
@tseavertseaver mentioned this pull request Jun 26, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsubIssues related to the Pub/Sub API.cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@dhermes@lukesneeringer@kir-titievsky@tseaver@googlebot