public class ServiceInstance<T> extends Object
Modifier and Type | Method and Description |
---|---|
static <T> ServiceInstanceBuilder<T> |
builder()
Return a new builder.
|
String |
buildUriSpec() |
String |
buildUriSpec(Map<String,Object> variables) |
boolean |
equals(Object o) |
String |
getAddress() |
String |
getId() |
String |
getName() |
T |
getPayload() |
Integer |
getPort() |
long |
getRegistrationTimeUTC() |
ServiceType |
getServiceType() |
Integer |
getSslPort() |
UriSpec |
getUriSpec() |
int |
hashCode() |
String |
toString() |
public static <T> ServiceInstanceBuilder<T> builder() throws Exception
address
is set to the ip of the first
NIC in the system. The id
is set to a random UUID.Exception
- errors getting the local IPpublic String getName()
public String getId()
public String getAddress()
public Integer getPort()
public Integer getSslPort()
public T getPayload()
public long getRegistrationTimeUTC()
public ServiceType getServiceType()
public UriSpec getUriSpec()
public String buildUriSpec()
Copyright © 2011–2013 The Apache Software Foundation. All rights reserved.