/** Create a new instance. */ public StatelessRegistry(Clock clock, StatelessConfig config) { super(clock, config); this.enabled = config.enabled(); this.frequency = config.frequency(); this.meterTTL = config.meterTTL().toMillis(); this.connectTimeout = (int) config.connectTimeout().toMillis(); this.readTimeout = (int) config.readTimeout().toMillis(); this.uri = URI.create(config.uri()); this.batchSize = config.batchSize(); this.commonTags = config.commonTags(); this.client = HttpClient.create(this); }
/** Create a new instance. */ public StatelessRegistry(Clock clock, StatelessConfig config) { super(clock, config); this.enabled = config.enabled(); this.frequency = config.frequency(); this.meterTTL = config.meterTTL().toMillis(); this.connectTimeout = (int) config.connectTimeout().toMillis(); this.readTimeout = (int) config.readTimeout().toMillis(); this.uri = URI.create(config.uri()); this.batchSize = config.batchSize(); this.commonTags = config.commonTags(); this.client = HttpClient.create(this); }