diff options
author | Diva Canto | 2013-07-16 19:04:30 -0700 |
---|---|---|
committer | Diva Canto | 2013-07-16 19:04:30 -0700 |
commit | 9432f3c94d0b0345132e5ff9eaf966b96cf218c2 (patch) | |
tree | 659944db7a09bd871a70ded726693f2a3e321c59 /OpenSim/Region/Framework/Interfaces | |
parent | UserManagementModule: in the continuation, call the method that also looks up... (diff) | |
download | opensim-SC_OLD-9432f3c94d0b0345132e5ff9eaf966b96cf218c2.zip opensim-SC_OLD-9432f3c94d0b0345132e5ff9eaf966b96cf218c2.tar.gz opensim-SC_OLD-9432f3c94d0b0345132e5ff9eaf966b96cf218c2.tar.bz2 opensim-SC_OLD-9432f3c94d0b0345132e5ff9eaf966b96cf218c2.tar.xz |
Improvements to the ServiceThrottleModule: added a category and an itemid to the interface, so that duplicate requests aren't enqueued more than once.
Diffstat (limited to 'OpenSim/Region/Framework/Interfaces')
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/IServiceThrottleModule.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IServiceThrottleModule.cs b/OpenSim/Region/Framework/Interfaces/IServiceThrottleModule.cs index bb6a8b4..198256f 100644 --- a/OpenSim/Region/Framework/Interfaces/IServiceThrottleModule.cs +++ b/OpenSim/Region/Framework/Interfaces/IServiceThrottleModule.cs | |||
@@ -5,7 +5,15 @@ namespace OpenSim.Region.Framework.Interfaces | |||
5 | { | 5 | { |
6 | public interface IServiceThrottleModule | 6 | public interface IServiceThrottleModule |
7 | { | 7 | { |
8 | void Enqueue(Action continuation); | 8 | /// <summary> |
9 | /// Enqueue a continuation meant to get a resource from elsewhere. | ||
10 | /// As usual with CPS, caller beware: if that continuation is a never-ending computation, | ||
11 | /// the whole thread will be blocked, and no requests are processed | ||
12 | /// </summary> | ||
13 | /// <param name="category">Category of the resource (e.g. name, region)</param> | ||
14 | /// <param name="itemid">The resource identifier</param> | ||
15 | /// <param name="continuation">The continuation to be executed</param> | ||
16 | void Enqueue(string category, string itemid, Action continuation); | ||
9 | } | 17 | } |
10 | 18 | ||
11 | } | 19 | } |