Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impl PublishWithContext and make subscriber and publisher accessible #2882

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bc-tayvs
Copy link

Made subscriber and publisher package private. In case when you need custom approach or just client

Issue

Made subscriber and publisher package private. In case when you need custom approach or just client
@lightbend-cla-validator

Hi @bc-tayvs,

Thank you for your contribution! We really value the time you've taken to put this together.

Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement:

https://www.lightbend.com/contribute/cla

Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

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

looks like a nice convenience

@@ -127,15 +140,28 @@ object GooglePubSub {
.mapMaterializedValue(_.flatMap(identity)(ExecutionContexts.parasitic))
}

private def publisher(mat: Materializer, attr: Attributes) =
@ApiMayChange
Copy link
Member

Choose a reason for hiding this comment

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

These are not supposed to be public user facing API? Then they should be marked with @InternalApi instead.

Copy link
Member

Choose a reason for hiding this comment

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

I think they should be left private, or if I'm missing a use case, please describe it a bit.

*
* @param parallelism controls how many messages can be in-flight at any given time
*/
def publishWithContext[Ctx](parallelism: Int): FlowWithContext[PublishRequest, Ctx, PublishResponse, Ctx, NotUsed] =
Copy link
Member

Choose a reason for hiding this comment

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

no corresponding in javadsl?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants