Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for parseDuration (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava/src/com/google/common/cache/CacheBuilderSpec.java

          spec.recordStats = true;
        }
      }
    
      /** Base class for parsing times with durations */
      private abstract static class DurationParser implements ValueParser {
        abstract void parseDuration(CacheBuilderSpec spec, long duration, TimeUnit unit);
    
        @Override
        public void parse(CacheBuilderSpec spec, String key, @Nullable String value) {
          if (isNullOrEmpty(value)) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 18.2K bytes
    - Click Count (0)
  2. guava/src/com/google/common/cache/CacheBuilderSpec.java

          spec.recordStats = true;
        }
      }
    
      /** Base class for parsing times with durations */
      private abstract static class DurationParser implements ValueParser {
        abstract void parseDuration(CacheBuilderSpec spec, long duration, TimeUnit unit);
    
        @Override
        public void parse(CacheBuilderSpec spec, String key, @Nullable String value) {
          if (isNullOrEmpty(value)) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 18.2K bytes
    - Click Count (0)
  3. internal/config/api/api.go

    		return cfg, errors.New("invalid API max requests value")
    	}
    
    	clusterDeadline, err := time.ParseDuration(env.Get(EnvAPIClusterDeadline, kvs.GetWithDefault(apiClusterDeadline, DefaultKVS)))
    	if err != nil {
    		return cfg, err
    	}
    	cfg.ClusterDeadline = clusterDeadline
    
    	remoteTransportDeadline, err := time.ParseDuration(env.Get(EnvAPIRemoteTransportDeadline, kvs.GetWithDefault(apiRemoteTransportDeadline, DefaultKVS)))
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 11.5K bytes
    - Click Count (1)
  4. internal/logger/config.go

    		retryInterval, err := time.ParseDuration(retryIntervalCfgVal)
    		if err != nil {
    			return cfg, err
    		}
    		if retryInterval > time.Minute {
    			return cfg, fmt.Errorf("maximum allowed value for retry interval is '1m': %s", retryIntervalCfgVal)
    		}
    
    		httpTimeoutCfgVal := getCfgVal(EnvLoggerWebhookHTTPTimeout, k, kv.Get(httpTimeout))
    		httpTimeout, err := time.ParseDuration(httpTimeoutCfgVal)
    		if err != nil {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 18.7K bytes
    - Click Count (0)
  5. cmd/signature-v4-parser.go

    	if e != nil {
    		return psv, ErrMalformedPresignedDate
    	}
    
    	// Save expires in native time.Duration.
    	preSignV4Values.Expires, e = time.ParseDuration(query.Get(xhttp.AmzExpires) + "s")
    	if e != nil {
    		return psv, ErrMalformedExpires
    	}
    
    	if preSignV4Values.Expires < 0 {
    		return psv, ErrNegativeExpires
    	}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Oct 10 18:57:35 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  6. cmd/admin-handlers.go

    	ctx := r.Context()
    
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.ServerInfoAdminAction)
    	if objectAPI == nil {
    		return
    	}
    	const defaultMetricsInterval = time.Second
    
    	interval, err := time.ParseDuration(r.Form.Get("interval"))
    	if err != nil || interval < time.Second {
    		interval = defaultMetricsInterval
    	}
    
    	n, err := strconv.Atoi(r.Form.Get("n"))
    	if err != nil || n <= 0 {
    		n = math.MaxInt32
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 99.7K bytes
    - Click Count (0)
  7. internal/config/notify/parse.go

    		}
    		reconnectInterval, err := time.ParseDuration(env.Get(reconnectIntervalEnv,
    			kv.Get(target.MqttReconnectInterval)))
    		if err != nil {
    			return nil, err
    		}
    
    		keepAliveIntervalEnv := target.EnvMQTTKeepAliveInterval
    		if k != config.Default {
    			keepAliveIntervalEnv = keepAliveIntervalEnv + config.Default + k
    		}
    		keepAliveInterval, err := time.ParseDuration(env.Get(keepAliveIntervalEnv,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 47.5K bytes
    - Click Count (0)
  8. internal/config/identity/openid/openid.go

    // GetDefaultExpiration - returns the expiration seconds expected.
    func GetDefaultExpiration(dsecs string) (time.Duration, error) {
    	timeout := env.Get(config.EnvMinioStsDuration, "")
    	defaultExpiryDuration, err := time.ParseDuration(timeout)
    	if err != nil {
    		defaultExpiryDuration = time.Hour
    	}
    	if timeout == "" && dsecs != "" {
    		expirySecs, err := strconv.ParseInt(dsecs, 10, 64)
    		if err != nil {
    			return 0, auth.ErrInvalidDuration
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 17.3K bytes
    - Click Count (0)
  9. cmd/peer-rest-server.go

    	if err != nil {
    		size = 64 * humanize.MiByte
    	}
    
    	concurrent, err := strconv.Atoi(concurrentStr)
    	if err != nil {
    		concurrent = 32
    	}
    
    	duration, err := time.ParseDuration(durationStr)
    	if err != nil {
    		duration = time.Second * 10
    	}
    
    	done := keepHTTPResponseAlive(w)
    
    	result, err := selfSpeedTest(r.Context(), speedTestOpts{
    		objectSize:      size,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 53.6K bytes
    - Click Count (0)
Back to Top