Documentation
¶
Index ¶
Constants ¶
View Source
const CName = "common.util.syncqueues"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestPool ¶
type RequestPool interface {
TryTake(peerId, objectId string) bool
Release(peerId, objectId string)
Run()
QueueRequestAction(peerId, objectId string, action func(ctx context.Context), remove func()) (err error)
Close()
}
func NewRequestPool ¶
func NewRequestPool(closePeriod, gcPeriod time.Duration, openFunc func(peerId string) *tryAddQueue) RequestPool
type SyncQueues ¶
type SyncQueues interface {
app.ComponentRunnable
RequestPool(spaceId string) RequestPool
Limit(spaceId string) *Limit
}
func New ¶
func New() SyncQueues
Click to show internal directories.
Click to hide internal directories.