Skip to content

do not expose Service #1553

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

Merged
merged 1 commit into from
Jan 25, 2017
Merged

do not expose Service #1553

merged 1 commit into from
Jan 25, 2017

Conversation

pongad
Copy link
Contributor

@pongad pongad commented Jan 20, 2017

I'm not sure how ready this PR is. The general logic is to hide the implementation in a subclass then create a delegator. If the approach looks fine to you, I'll go ahead and document the methods.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 20, 2017
@pongad
Copy link
Contributor Author

pongad commented Jan 24, 2017

@garrettjonesgoogle Please take a look. If possible, I'd like to merge this ASAP, since everything we do will conflict with this change.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 83.081% when pulling e0493ba on pongad:de-service into c68968b on GoogleCloudPlatform:pubsub-hp.

@garrettjonesgoogle
Copy link
Member

It's hard to figure out what has changed and what has moved - can you point me to the points in the PR that need to actually be considered?

@pongad
Copy link
Contributor Author

pongad commented Jan 24, 2017

@garrettjonesgoogle Essentially, all fields (non static ones) and all methods are moved into the inner SubscriberImpl class. SubscriberImpl still extends AbstractService so that we can the methods we want. The Subscriber class just re-declare methods in SubscriberImpl. It also re-declares Service.State and Service.Listener classes and translate between the original and the redeclaration.

logger.debug("Starting subscriber group.");
startStreamingConnections();
notifyStarted();
public enum State {

This comment was marked as spam.

TERMINATED
}

public abstract static class SubscriberListener {

This comment was marked as spam.

@garrettjonesgoogle
Copy link
Member

LGTM

@pongad pongad merged commit f91c809 into googleapis:pubsub-hp Jan 25, 2017
@pongad pongad deleted the de-service branch January 25, 2017 01:30
github-actions bot pushed a commit to yoshi-code-bot/google-cloud-java that referenced this pull request Nov 8, 2022
…s#1687) (googleapis#1553)

* chore(java): add a note in README for migrated split repos

Disable renovate bot and flaky bot for split repositories
that have moved to the Java monorepo.
The Java monorepo will pass the "monorepo=True" parameter
to java.common_templates method in its owlbot.py files so that
the migration note will not appear in the README in the monorepo.

Co-authored-by: Jeff Ching <[email protected]>
Source-Link: https://togithub.com/googleapis/synthtool/commit/d4b291604f148cde065838c498bc8aa79b8dc10e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:edae91ccdd2dded2f572ec341a768ad180305a3e8fbfd93064b28e237d35920a
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