public class ServiceInfo
A container for additional information for an advertised service.
Modifier and Type | Class and Description |
---|---|
static class |
ServiceInfo.Companion |
Modifier and Type | Field and Description |
---|---|
static ServiceInfo.Companion |
Companion |
Constructor and Description |
---|
ServiceInfo(ServiceType type,
java.lang.String name)
A container for additional information for an advertised service.
|
Modifier and Type | Method and Description |
---|---|
ServiceType |
component1() |
java.lang.String |
component2() |
ServiceInfo |
copy(ServiceType type,
java.lang.String name)
A container for additional information for an advertised service.
|
boolean |
equals(java.lang.Object p) |
java.lang.String |
getName() |
ServiceType |
getType() |
int |
hashCode() |
java.lang.String |
toString() |
public static ServiceInfo.Companion Companion
public ServiceInfo(ServiceType type, java.lang.String name)
A container for additional information for an advertised service.
type
- the ServiceType identifiername
- the service name, used for differentiating multiple services of the same type. Can also be used as a
grouping identifier for nodes collectively running a distributed service.public java.lang.String toString()
public ServiceType getType()
public java.lang.String getName()
public ServiceType component1()
public java.lang.String component2()
public ServiceInfo copy(ServiceType type, java.lang.String name)
A container for additional information for an advertised service.
type
- the ServiceType identifiername
- the service name, used for differentiating multiple services of the same type. Can also be used as a
grouping identifier for nodes collectively running a distributed service.public int hashCode()
public boolean equals(java.lang.Object p)