Package io.vertx.reactivex.grpc.common
Class ServiceName
- java.lang.Object
-
- io.vertx.reactivex.grpc.common.ServiceName
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<ServiceName>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description ServiceName(ServiceName delegate)
ServiceName(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete 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 nameboolean
equals(Object o)
String
fullyQualifiedName()
ServiceName
getDelegate()
int
hashCode()
String
name()
static ServiceName
newInstance(ServiceName arg)
String
packageName()
String
pathOf(String method)
Create the path of a givenmethod
to call.String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<ServiceName> __TYPE_ARG
-
-
Constructor Detail
-
ServiceName
public ServiceName(ServiceName delegate)
-
ServiceName
public ServiceName(Object delegate)
-
-
Method Detail
-
getDelegate
public ServiceName getDelegate()
-
create
public 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
public 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
public String name()
- Returns:
- the name
-
packageName
public String packageName()
- Returns:
- the package name
-
fullyQualifiedName
public String fullyQualifiedName()
- Returns:
- the fully qualified name
-
pathOf
public String pathOf(String method)
Create the path of a givenmethod
to call.- Parameters:
method
- the method- Returns:
- the path, e.g
/com.examples.MyService/MyMethod
-
newInstance
public static ServiceName newInstance(ServiceName arg)
-
-