mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user