IServiceThrottleModule.cs 760 B

12345678910111213141516171819
  1. using System;
  2. using System.Collections.Generic;
  3. namespace OpenSim.Region.Framework.Interfaces
  4. {
  5. public interface IServiceThrottleModule
  6. {
  7. /// <summary>
  8. /// Enqueue a continuation meant to get a resource from elsewhere.
  9. /// As usual with CPS, caller beware: if that continuation is a never-ending computation,
  10. /// the whole thread will be blocked, and no requests are processed
  11. /// </summary>
  12. /// <param name="category">Category of the resource (e.g. name, region)</param>
  13. /// <param name="itemid">The resource identifier</param>
  14. /// <param name="continuation">The continuation to be executed</param>
  15. void Enqueue(string category, string itemid, Action continuation);
  16. }
  17. }