public class Instance extends Object implements Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
String |
address() |
Instance |
address(String address) |
static Instance |
local() |
static Instance |
localNew() |
Map<String,String> |
meta() |
Instance |
metaPut(String name,
String value) |
Instance |
metaPutAll(Map<String,String> map) |
Instance |
metaRemove(String name) |
String |
protocol() |
Instance |
protocol(String protocol) |
String |
service() |
List<String> |
tags() |
Instance |
tagsAdd(String tag) |
Instance |
tagsAddAll(Collection<String> list) |
double |
weight() |
Instance |
weight(double weight) |
public String service()
public String address()
public String protocol()
public double weight()
public Instance weight(double weight)
public Instance tagsAddAll(Collection<String> list)
public static Instance local()
public static Instance localNew()
Copyright © 2021. All rights reserved.