@SneakyThrows private UniAddress getUniAddress() { if (this.loadBalance) { if (StringUtils.isNotBlank(this.includePattern)) { val dcs = NbtAddress.getAllByName(this.domainController, NBT_ADDRESS_TYPE, null, null); return Arrays.stream(dcs) .filter(dc2 -> dc2.getHostAddress().matches(this.includePattern)) .findFirst() .map(UniAddress::new) .orElse(null); } return new UniAddress(NbtAddress.getByName(this.domainController, NBT_ADDRESS_TYPE, null)); } return UniAddress.getByName(this.domainController, true); }
NbtAddress[] list = NbtAddress.getAllByName( DOMAIN, 0x1C, null, null ); dc_list_expiration = now + CACHE_POLICY * 1000L; if (list != null && list.length > 0) {
NbtAddress[] list = NbtAddress.getAllByName( DOMAIN, 0x1C, null, null ); dc_list_expiration = now + CACHE_POLICY * 1000L; if (list != null && list.length > 0) {
NbtAddress[] list = NbtAddress.getAllByName( DOMAIN, 0x1C, null, null ); dc_list_expiration = now + CACHE_POLICY * 1000L; if (list != null && list.length > 0) {
NbtAddress[] list = NbtAddress.getAllByName( DOMAIN, 0x1C, null, null ); dc_list_expiration = now + CACHE_POLICY * 1000L; if (list != null && list.length > 0) {
final NbtAddress[] dcs = NbtAddress.getAllByName(this.domainController, NBT_ADDRESS_TYPE, null, null); for (final NbtAddress dc2 : dcs) { if(dc2.getHostAddress().matches(this.includePattern)){