8000 add Publisher.Settings by pongad · Pull Request #1515 · googleapis/google-cloud-java · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@pongad
Copy link
Contributor
@pongad pongad commented Jan 9, 2017

This class is used to configure Publisher.
User-visible options are made public.
Options that should be automatically populated,
like user credentials,
are left package-private for now.

Tests for input validation for BundlingSettings
and FlowController are removed.
They should be moved to gax instead.
googleapis/gax-java#168

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 9, 2017
This class is used to configure Publisher.
User-visible options are made public.
Options that should be automatically populated,
like user credentials,
are left package-private for now.
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 2beb34e on pongad:publisher-settings into ** on GoogleCloudPlatform:pubsub-hp**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 95c9d40 on pongad:publisher-settings into ** on GoogleCloudPlatform:pubsub-hp**.

Copy link
Contributor Author
@pongad pongad left a comment

Choose a reason for hiding this comment

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

@garrettjonesgoogle I think I got this mostly right, but I'm completely unfamiliar with the handwritten option classes. PTAL.

maxBundleMessages = builder.bundlingSettings.getElementCountThreshold();
maxBundleBytes = builder.bundlingSettings.getRequestByteThreshold();
maxBundleDuration = builder.bundlingSettings.getDelayThreshold();
PublisherImpl(String topic, PubSubOptions psOptions, Settings settings) throws IOException {

This comment was marked as spam.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 73074a5 on pongad:publisher-settings into ** on GoogleCloudPlatform:pubsub-hp**.

maxBundleMessages = builder.bundlingSettings.getElementCountThreshold();
maxBundleBytes = builder.bundlingSettings.getRequestByteThreshold();
maxBundleDuration = builder.bundlingSettings.getDelayThreshold();
PublisherImpl(String topic, PubSubOptions psOptions, Settings settings) throws IOException {

This comment was marked as spam.

@garrettjonesgoogle
Copy link
Member

Is this obsolete or does it need to be rewritten?

@pongad
Copy link
Contributor Author
pongad commented Jan 17, 2017

@garrettjonesgoogle Thanks for pointing this out. This is superseded by us deleting all the hand written parts.

@pongad pongad B08C closed this Jan 17, 2017
@pongad pongad deleted the publisher-settings branch January 17, 2017 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

0