Documentation
¶
Overview ¶
Package candidatecache holds the per-replica bounded set of step candidates produced by the engine's refiller. It is a hint cache, not a work queue: entries confer no ownership, so a stale or duplicated candidate is harmless. The engine claims the underlying step via CAS before running it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is a bounded per-replica set of step candidates - hints, not ownership.
func (*Cache) Close ¶
func (c *Cache) Close()
Close permanently unblocks all waiters. Offer/Refill become no-ops after close.
func (*Cache) Offer ¶
Offer front-loads a single higher-priority candidate. It returns needRefill=true when the cache is empty (the caller should refill); a candidate whose priority is no better than the current floor is dropped.