Improvements to the ServiceThrottleModule: added a category and an itemid to the interface, so that duplicate requests aren't enqueued more than once.

This commit is contained in:
Diva Canto
2013-07-16 19:04:30 -07:00
parent 5f27aaa6dd
commit 9432f3c94d
4 changed files with 40 additions and 11 deletions

View File

@@ -5,7 +5,15 @@ namespace OpenSim.Region.Framework.Interfaces
{
public interface IServiceThrottleModule
{
void Enqueue(Action continuation);
/// <summary>
/// Enqueue a continuation meant to get a resource from elsewhere.
/// As usual with CPS, caller beware: if that continuation is a never-ending computation,
/// the whole thread will be blocked, and no requests are processed
/// </summary>
/// <param name="category">Category of the resource (e.g. name, region)</param>
/// <param name="itemid">The resource identifier</param>
/// <param name="continuation">The continuation to be executed</param>
void Enqueue(string category, string itemid, Action continuation);
}
}