prune

package
v0.0.0-...-d2b1cdf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostPruner

type HostPruner interface {
	Prune(_ *atomic.Bool)
}

HostPruner is the interface to prune hosts set to PlacingOffer status for too long by resetting status to ReadyOffer

func NewHeldHostPruner

func NewHeldHostPruner(pool offerpool.Pool, scope tally.Scope) HostPruner

NewHeldHostPruner initializes the host pruner for an OfferPool which prunes expired hosts in Held state

func NewPlacingHostPruner

func NewPlacingHostPruner(pool offerpool.Pool, scope tally.Scope) HostPruner

NewPlacingHostPruner initializes the host pruner for an OfferPool which prunes expired hosts in Placing state

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL