當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。