本文整理汇总了Java中com.ecwid.consul.v1.agent.AgentClient类的典型用法代码示例。如果您正苦于以下问题:Java AgentClient类的具体用法?Java AgentClient怎么用?Java AgentClient使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AgentClient类属于com.ecwid.consul.v1.agent包,在下文中一共展示了AgentClient类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ConsulServiceRegistrar
import com.ecwid.consul.v1.agent.AgentClient; //导入依赖的package包/类
private ConsulServiceRegistrar(
final ScheduledExecutorService scheduledExecutorService,
final AgentClient agentClient,
final int heartbeatPeriod,
final TimeUnit heartbeatPeriodTimeUnit,
final List<String> tags,
final Set<String> excludedServices,
final List<Check> checks
) {
this.scheduledExecutorService = scheduledExecutorService;
this.agentClient = agentClient;
this.heartbeatPeriod = heartbeatPeriod;
this.heartbeatPeriodTimeUnit = heartbeatPeriodTimeUnit;
this.tags = Lists.newArrayList(tags);
this.excludedServices = Sets.newHashSet(excludedServices);
this.checks = Lists.newArrayList(checks);
}
示例2: getAgentClient
import com.ecwid.consul.v1.agent.AgentClient; //导入依赖的package包/类
@Nullable
public AgentClient getAgentClient() {
return agentClient;
}
示例3: setAgentClient
import com.ecwid.consul.v1.agent.AgentClient; //导入依赖的package包/类
public void setAgentClient(final AgentClient agentClient) {
this.agentClient = checkNotNull(agentClient, "agentClient");
}
示例4: withAgentClient
import com.ecwid.consul.v1.agent.AgentClient; //导入依赖的package包/类
public Builder withAgentClient(final AgentClient agentClient) {
setAgentClient(agentClient);
return this;
}
示例5: setAgentClient
import com.ecwid.consul.v1.agent.AgentClient; //导入依赖的package包/类
@Reference(unbind = "clearAgentClient", policy = ReferencePolicy.DYNAMIC)
public void setAgentClient(AgentClient agentClient) {
this.agentClient = agentClient;
}
示例6: clearAgentClient
import com.ecwid.consul.v1.agent.AgentClient; //导入依赖的package包/类
public void clearAgentClient(AgentClient agentClient) {
this.agentClient = null;
}