An alternative implementation would be to have a method
extractFullServiceNameAndSimpleMethodName that returns a pair of Strings
(or a class with two String members) representing the full service name and
simple method name.

On Tue, Jan 17, 2017 at 4:09 PM Noel Yap <[email protected]> wrote:

> We have a need to get the simple method name from MethodDescriptor. For
> example, the simple service name of service/method is method. This can be
> implemented using extractFullServiceName but sometimes we want both the
> full service name as well as the simple method name and implementing
> extractSimpleMethodName in terms of extractFullServiceName would mean
> searching for / at least twice through the full method name. This can be
> avoided if MethodDescriptor stored the full service name and the simple
> method name separately. Before I start working on a PR, I'd like to know if
> this is a change the team would be open to and, if so, any other
> information that might be helpful.
>
> Thanks,
> Noel
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CALa_nQmnZ-7ZbPDy51WPcwUi9NguU%2BBFo7wgxXZTbzyZ%3Df64BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to