/** * Set the unit of time for the service discovery timeout * * @param serviceDiscoveryTimeUnits The unit of time for the service discovery timeout */ public void setServiceDiscoveryTimeUnits(final TimeUnit serviceDiscoveryTimeUnits) { if (serviceDiscoveryTimeUnits == null) throw new IllegalArgumentException("serviceDiscoveryTimeUnits is null"); if (serviceDiscoveryTimeUnits.ordinal() < TimeUnit.MILLISECONDS.ordinal()) throw new IllegalArgumentException( "serviceDiscoveryTimeUnits cannot be smaller then MILLISECONDS"); this.serviceDiscoveryTimeUnits = serviceDiscoveryTimeUnits; }