retentionMgr

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: MIT Imports: 11 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	RetentionInterval                time.Duration
	DLQRetentionInterval             time.Duration
	SingleCGVisibleExtentGracePeriod time.Duration
	ExtentDeleteDeferPeriod          time.Duration
	NumWorkers                       int
	LocalZone                        string
}

Options are the options used to initialize RetentionManager

type RetentionManager

type RetentionManager struct {
	*Options

	sync.Mutex
	// contains filtered or unexported fields
}

RetentionManager context

func New

func New(opts *Options, metadata metadata.TChanMetadataService, clientFactory common.ClientFactory, m3Client metrics.Client, logger bark.Logger) *RetentionManager

New initializes context for a new instance of retention manager

func (*RetentionManager) Run

func (t *RetentionManager) Run()

Run does a 'one-shot' run of retention manager

func (*RetentionManager) Start

func (t *RetentionManager) Start()

Start starts the various go-routines asynchronously

func (*RetentionManager) Stop

func (t *RetentionManager) Stop()

Stop stops the retention manager

Jump to

Keyboard shortcuts

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