Skip to content

Commit 85ed053

Browse files
authored
api: Stabilize ServerBuilder.AddServices() (grpc#11285)
1 parent b43d283 commit 85ed053

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

api/src/main/java/io/grpc/ServerBuilder.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,15 @@ public T callExecutor(ServerCallExecutorSupplier executorSupplier) {
114114
public abstract T addService(BindableService bindableService);
115115

116116
/**
117-
* Adds a list of service implementations to the handler registry together.
117+
* Adds a list of service implementations to the handler registry together. This exists for
118+
* convenience - equivalent to repeatedly calling addService() with different services.
119+
* If multiple services on the list use the same name, only the last one on the list will
120+
* be added.
118121
*
119122
* @param services the list of ServerServiceDefinition objects
120123
* @return this
121124
* @since 1.37.0
122125
*/
123-
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/7925")
124126
public final T addServices(List<ServerServiceDefinition> services) {
125127
checkNotNull(services, "services");
126128
for (ServerServiceDefinition service : services) {

0 commit comments

Comments
 (0)