Interface ServiceName


public interface ServiceName
A gRPC service name.
  • Method Details

    • create

      static ServiceName create(String fqn)
      Create a service name from its fully qualified name, e.g com.examples.MyService
      Parameters:
      fqn - the fully qualified service name
      Returns:
      the service name
    • create

      static ServiceName create(String packageName, String name)
      Create a service name from its package name and name
      Parameters:
      packageName - the package name
      name - the name
      Returns:
      the service name
    • name

      String name()
      Returns:
      the name
    • packageName

      String packageName()
      Returns:
      the package name
    • fullyQualifiedName

      String fullyQualifiedName()
      Returns:
      the fully qualified name
    • pathOf

      String pathOf(String method)
      Create the path of a given method to call.
      Parameters:
      method - the method
      Returns:
      the path, e.g /com.examples.MyService/MyMethod