Interface GrpcRouteRegistration
A contract for generated gRPC route registrations.
The implementing types are expected to be ServiceRegistry services,
and will be loaded through a ServerFeature.
-
Method Summary
Modifier and TypeMethodDescriptiongRPC service descriptor provided by this registration.default Stringsocket()Named socket this registration should be added to.default booleanWhether the socket defined insocket()must be present for this registration, or it can be exposed on default socket.
-
Method Details
-
descriptor
GrpcServiceDescriptor descriptor()gRPC service descriptor provided by this registration.- Returns:
- gRPC service descriptor
-
socket
Named socket this registration should be added to.- Returns:
- name of the socket
-
socketRequired
default boolean socketRequired()Whether the socket defined insocket()must be present for this registration, or it can be exposed on default socket. When this method returnsfalseandsocket()returns a named socket that is not configured on the server, the registration falls back to the default socket.- Returns:
trueif this registration must be exposed on the named socket,falseby default
-