Package io.vertx.grpc.common
Interface ServiceName
-
public interface ServiceName
A gRPC service name.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ServiceName
create(String fqn)
Create a service name from its fully qualified name, e.gcom.examples.MyService
static ServiceName
create(String packageName, String name)
Create a service name from its package name and nameString
fullyQualifiedName()
String
name()
String
packageName()
String
pathOf(String method)
Create the path of a givenmethod
to call.
-
-
-
Method Detail
-
create
static ServiceName create(String fqn)
Create a service name from its fully qualified name, e.gcom.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 namename
- 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
-
-