C# Class NuGet.Services.Metadata.Catalog.SortingCollector

Inheritance: CommitCollector
显示文件 Open project: NuGet/NuGet.Services.Metadata

Public Methods

Method Description
SortingCollector ( Uri index, Func handlerFunc = null ) : Newtonsoft.Json.Linq

Protected Methods

Method Description
GetKey ( Newtonsoft.Json.Linq.JObject item ) : string
OnProcessBatch ( CollectorHttpClient client, IEnumerable items, JToken context, System.DateTime commitTimeStamp, bool isLastBatch, CancellationToken cancellationToken ) : Task
ProcessSortedBatch ( CollectorHttpClient client, KeyValuePair sortedBatch, JToken context, CancellationToken cancellationToken ) : Task

Method Details

GetKey() protected method

protected GetKey ( Newtonsoft.Json.Linq.JObject item ) : string
item Newtonsoft.Json.Linq.JObject
return string

OnProcessBatch() protected method

protected OnProcessBatch ( CollectorHttpClient client, IEnumerable items, JToken context, System.DateTime commitTimeStamp, bool isLastBatch, CancellationToken cancellationToken ) : Task
client CollectorHttpClient
items IEnumerable
context JToken
commitTimeStamp System.DateTime
isLastBatch bool
cancellationToken System.Threading.CancellationToken
return Task

ProcessSortedBatch() protected abstract method

protected abstract ProcessSortedBatch ( CollectorHttpClient client, KeyValuePair sortedBatch, JToken context, CancellationToken cancellationToken ) : Task
client CollectorHttpClient
sortedBatch KeyValuePair
context JToken
cancellationToken System.Threading.CancellationToken
return Task

SortingCollector() public method

public SortingCollector ( Uri index, Func handlerFunc = null ) : Newtonsoft.Json.Linq
index System.Uri
handlerFunc Func
return Newtonsoft.Json.Linq