Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for nextBookmarkTime (0.21 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher.go

    	}
    
    	// OK, block sending, but only until timer fires.
    	select {
    	case c.input <- event:
    		return true
    	case <-timer.C:
    		closeFunc()
    		return false
    	}
    }
    
    func (c *cacheWatcher) nextBookmarkTime(now time.Time, bookmarkFrequency time.Duration) (time.Time, bool) {
    	// We try to send bookmarks:
    	//
    	// (a) right before the watcher timeout - for now we simply set it 2s before
    	//     the deadline
    	//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 12:22:41 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	// note that the returned time can be before t.createTime,
    	// especially in cases when the nextBookmarkTime method
    	// give us the zero value of type Time
    	// so buckedID can hold a negative value
    	nextTime, ok := w.nextBookmarkTime(t.clock.Now(), t.bookmarkFrequency)
    	if !ok {
    		return false
    	}
    	bucketID := int64(nextTime.Sub(t.createTime) / time.Second)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
Back to top