当前位置: 首页>>代码示例>>Java>>正文


Java AgentClient类代码示例

本文整理汇总了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);
}
 
开发者ID:indeedeng-alpha,项目名称:indeed-grpc-java,代码行数:18,代码来源:ConsulServiceRegistrar.java

示例2: getAgentClient

import com.ecwid.consul.v1.agent.AgentClient; //导入依赖的package包/类
@Nullable
public AgentClient getAgentClient() {
    return agentClient;
}
 
开发者ID:indeedeng-alpha,项目名称:indeed-grpc-java,代码行数:5,代码来源:ConsulServiceRegistrar.java

示例3: setAgentClient

import com.ecwid.consul.v1.agent.AgentClient; //导入依赖的package包/类
public void setAgentClient(final AgentClient agentClient) {
    this.agentClient = checkNotNull(agentClient, "agentClient");
}
 
开发者ID:indeedeng-alpha,项目名称:indeed-grpc-java,代码行数:4,代码来源:ConsulServiceRegistrar.java

示例4: withAgentClient

import com.ecwid.consul.v1.agent.AgentClient; //导入依赖的package包/类
public Builder withAgentClient(final AgentClient agentClient) {
    setAgentClient(agentClient);
    return this;
}
 
开发者ID:indeedeng-alpha,项目名称:indeed-grpc-java,代码行数:5,代码来源:ConsulServiceRegistrar.java

示例5: setAgentClient

import com.ecwid.consul.v1.agent.AgentClient; //导入依赖的package包/类
@Reference(unbind = "clearAgentClient", policy = ReferencePolicy.DYNAMIC)
public void setAgentClient(AgentClient agentClient) {
	this.agentClient = agentClient;
}
 
开发者ID:flyaruu,项目名称:tasman,代码行数:5,代码来源:ConsulBridgeOSGi.java

示例6: clearAgentClient

import com.ecwid.consul.v1.agent.AgentClient; //导入依赖的package包/类
public void clearAgentClient(AgentClient agentClient) {
	this.agentClient = null;
}
 
开发者ID:flyaruu,项目名称:tasman,代码行数:4,代码来源:ConsulBridgeOSGi.java


注:本文中的com.ecwid.consul.v1.agent.AgentClient类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。