Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 354 for limiter (0.14 sec)

  1. android/guava/src/com/google/common/util/concurrent/FakeTimeLimiter.java

    /**
     * A TimeLimiter implementation which actually does not attempt to limit time at all. This may be
     * desirable to use in some unit tests. More importantly, attempting to debug a call which is
     * time-limited would be extremely annoying, so this gives you a time-limiter you can easily swap in
     * for your real time-limiter while you're debugging.
     *
     * @author Kevin Bourrillion
     * @author Jens Nyman
     * @since 1.0
     */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/FakeTimeLimiter.java

    /**
     * A TimeLimiter implementation which actually does not attempt to limit time at all. This may be
     * desirable to use in some unit tests. More importantly, attempting to debug a call which is
     * time-limited would be extremely annoying, so this gives you a time-limiter you can easily swap in
     * for your real time-limiter while you're debugging.
     *
     * @author Kevin Bourrillion
     * @author Jens Nyman
     * @since 1.0
     */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  3. pkg/util/async/bounded_frequency_runner.go

    	mu      sync.Mutex  // guards runs of fn and all mutations
    	fn      func()      // function to run
    	lastRun time.Time   // time of last run
    	timer   timer       // timer for deferred runs
    	limiter rateLimiter // rate limiter for on-demand runs
    
    	retry     chan struct{} // schedule a retry
    	retryMu   sync.Mutex    // guards retryTime
    	retryTime time.Time     // when to retry
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 15 09:36:26 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/clientset.go

    		return nil
    	}
    	return c.DiscoveryClient
    }
    
    // NewForConfig creates a new Clientset for the given config.
    // If config's RateLimiter is not set and QPS and Burst are acceptable,
    // NewForConfig will generate a rate-limiter in configShallowCopy.
    // NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
    // where httpClient was generated with rest.HTTPClientFor(c).
    func NewForConfig(c *rest.Config) (*Clientset, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 21:36:26 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/clientset.go

    		return nil
    	}
    	return c.DiscoveryClient
    }
    
    // NewForConfig creates a new Clientset for the given config.
    // If config's RateLimiter is not set and QPS and Burst are acceptable,
    // NewForConfig will generate a rate-limiter in configShallowCopy.
    // NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
    // where httpClient was generated with rest.HTTPClientFor(c).
    func NewForConfig(c *rest.Config) (*Clientset, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 18:26:20 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  6. internal/bucket/bandwidth/monitor.go

    	m.tlock.RLock()
    	defer m.tlock.RUnlock()
    	return m.bucketsThrottle[opts]
    }
    
    // SetBandwidthLimit sets the bandwidth limit for a bucket
    func (m *Monitor) SetBandwidthLimit(bucket, arn string, limit int64) {
    	m.tlock.Lock()
    	defer m.tlock.Unlock()
    	limitBytes := limit / int64(m.NodeCount)
    	throttle, ok := m.bucketsThrottle[BucketOptions{Name: bucket, ReplicationARN: arn}]
    	if !ok {
    		throttle = &bucketThrottle{}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. pkg/controlplane/controller/legacytokentracking/controller_test.go

    			},
    		},
    	}
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			client := fake.NewSimpleClientset(test.clientObjects...)
    			limiter := rate.NewLimiter(rate.Every(throttlePeriod), 1)
    			controller := newController(client, testingclock.NewFakeClock(now), limiter)
    			if test.existingConfigMap != nil {
    				controller.configMapCache.Add(test.existingConfigMap)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 19 17:33:34 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/TimeLimiter.java

       * target} object, enforcing the specified time limit on each call. This time-limited delegation
       * is also performed for calls to {@link Object#equals}, {@link Object#hashCode}, and {@link
       * Object#toString}.
       *
       * <p>If the target method call finishes before the limit is reached, the return value or
       * exception is propagated to the caller exactly as-is. If, on the other hand, the time limit is
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/namespacecontroller.go

    	CACertNamespaceConfigMap = "istio-ca-root-cert"
    
    	// maxRetries is the number of times a namespace will be retried before it is dropped out of the queue.
    	// With the current rate-limiter in use (5ms*2^(maxRetries-1)) the following numbers represent the
    	// sequence of delays between successive queuing of a namespace.
    	//
    	// 5ms, 10ms, 20ms, 40ms, 80ms
    	maxRetries = 5
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. src/mime/quotedprintable/writer_test.go

    	"Enfin, un signe égal suivi par un saut de ligne (donc la suite des trois caractères de codes ASCII 61, 13 et 10) peut être inséré n'importe où, afin de limiter la taille des lignes produites si nécessaire. Une limite de 76 caractères par ligne est généralement respectée.\r\n")
    
    func BenchmarkWriter(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		w := NewWriter(io.Discard)
    		w.Write(testMsg)
    		w.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:36:47 UTC 2022
    - 5.1K bytes
    - Viewed (0)
Back to top