gpt4 book ai didi

denominator.model.Zone.ttl()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 07:37:31 26 4
gpt4 key购买 nike

本文整理了Java中denominator.model.Zone.ttl()方法的一些代码示例,展示了Zone.ttl()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Zone.ttl()方法的具体详情如下:
包路径:denominator.model.Zone
类名称:Zone
方法名:ttl

Zone.ttl介绍

[英]The ResourceRecordSet#ttl() of the zone's denominator.model.rdata.SOAData record.

Caution: Eventhough some providers use this as a default ttl for new records, this is not always the case.
[中]区域分母的ResourceRecordSet#ttl()。模型阿尔达。SOAData唱片公司。
警告:尽管一些提供商将其用作新记录的默认ttl,但情况并非总是如此。

代码示例

代码示例来源:origin: com.netflix.denominator/denominator-model

@Override
public String toString() {
 StringBuilder builder = new StringBuilder();
 builder.append("Zone [");
 if (!name().equals(id())) {
  builder.append("id=").append(id()).append(", ");
 }
 builder.append("name=").append(name());
 builder.append(", ").append("ttl=").append(ttl());
 builder.append(", ").append("email=").append(email());
 builder.append("]");
 return builder.toString();
}

代码示例来源:origin: com.netflix.denominator/denominator-model

@Override
public int hashCode() {
 int result = 17;
 result = 31 * result + (id() != null ? id().hashCode() : 0);
 result = 31 * result + name().hashCode();
 result = 31 * result + ttl();
 result = 31 * result + email().hashCode();
 return result;
}

代码示例来源:origin: com.netflix.denominator/denominator-model

@Override
public boolean equals(Object obj) {
 if (obj instanceof Zone) {
  Zone other = (Zone) obj;
  return equal(id(), other.id())
      && name().equals(other.name())
      && ttl() == other.ttl()
      && email().equals(other.email());
 }
 return false;
}

代码示例来源:origin: com.netflix.denominator/denominator-clouddns

private String updateZone(String id, Zone zone) {
 awaitComplete(api, api.updateDomain(id, zone.email(), zone.ttl()));
 return id;
}

代码示例来源:origin: com.netflix.denominator/denominator-core

.type("SOA")
           .name(zone.name())
           .ttl(zone.ttl())
           .add(soaData)
           .build());
recordsInZone.add(ns(zone.name(), zone.ttl(), asList("ns1." + zone.name())));
data.put(zone.name(), recordsInZone);
return zone.name();
if (rrset.type().equals("SOA")) {
 SOAData soaData = (SOAData) rrset.records().get(0);
 if (zone.email().equals(soaData.rname()) && zone.ttl() == rrset.ttl().intValue()) {
  return zone.name();
 data.get(zone.name()).add(soa(rrset, zone.email(), zone.ttl()));

代码示例来源:origin: com.netflix.denominator/denominator-clouddns

@Override
public String put(Zone zone) {
 if (zone.id() != null) {
  return updateZone(zone.id(), zone);
 }
 try {
  return awaitComplete(api, api.createDomain(zone.name(), zone.email(), zone.ttl()));
 } catch (IllegalStateException e) {
  if (e.getMessage().indexOf("already exists") == -1) {
   throw e;
  }
  String id = api.domainsByName(zone.name()).get(0).id();
  return updateZone(id, zone);
 }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com