/** * adds a disco node to the builder. Will throw an {@link IllegalArgumentException} if * the supplied node doesn't pass the pre-flight checks performed by {@link #validateAdd(DiscoveryNode)} */ public Builder add(DiscoveryNode node) { final String preflight = validateAdd(node); if (preflight != null) { throw new IllegalArgumentException(preflight); } putUnsafe(node); return this; }
/** * adds a disco node to the builder. Will throw an {@link IllegalArgumentException} if * the supplied node doesn't pass the pre-flight checks performed by {@link #validateAdd(DiscoveryNode)} */ public Builder add(DiscoveryNode node) { final String preflight = validateAdd(node); if (preflight != null) { throw new IllegalArgumentException(preflight); } putUnsafe(node); return this; }
/** * adds a disco node to the builder. Will throw an {@link IllegalArgumentException} if * the supplied node doesn't pass the pre-flight checks performed by {@link #validateAdd(DiscoveryNode)} */ public Builder add(DiscoveryNode node) { final String preflight = validateAdd(node); if (preflight != null) { throw new IllegalArgumentException(preflight); } putUnsafe(node); return this; }
/** * adds a disco node to the builder. Will throw an {@link IllegalArgumentException} if * the supplied node doesn't pass the pre-flight checks performed by {@link #validateAdd(DiscoveryNode)} */ public Builder add(DiscoveryNode node) { final String preflight = validateAdd(node); if (preflight != null) { throw new IllegalArgumentException(preflight); } putUnsafe(node); return this; }