本文整理匯總了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;
}