Repository navigation
Remove Service API from ServerImpl #33
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,13 +31,11 @@ | |
|
|
||
| package com.google.net.stubby; | ||
|
|
||
| import com.google.common.util.concurrent.Service; | ||
|
|
||
| import javax.annotation.concurrent.ThreadSafe; | ||
|
|
||
| /** | ||
| * Server for listening for and dispatching incoming calls. Although Server is an interface, it is | ||
| * not expected to be implemented by application code or interceptors. | ||
| */ | ||
| @ThreadSafe | ||
| public interface Server extends Service {} | ||
| public interface Server {} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this interface buy us anything anymore? Do we expect it to grow?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It didn't really buy us much before either. I honestly don't know if we expect it to grow. It seems trashing the interface and renaming ServerImpl to Server would be fine. If we claim the interface served a purpose before, then I can add start(), shutdown(), etc to the interface. We can't do that on client-side because the interface is used for interception, but that isn't the case on server-side. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm fine keeping it for now ... we can always remove later. |
||
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.
nice simplification