IPsQueue.cs 949 B

12345678910111213141516171819202122232425262728293031
  1. namespace qdr.fnd.core.pqueue
  2. {
  3. public interface IPsQueue : IDisposable
  4. {
  5. #region *** Properties ***
  6. /// <summary>
  7. /// Flag determines if the queue is running. Means if <see cref="Start"/> was called and <see cref="Stop"/> was not called.
  8. /// </summary>
  9. bool IsRunning { get; }
  10. #endregion
  11. #region *** Operations ***
  12. /// <summary>
  13. /// Starts the queue engine to processing queue items. If the queue is already running, the method throws an exception.
  14. /// <exception cref="CodeExeption"></exception>
  15. /// </summary>
  16. void Start();
  17. void Stop();
  18. /// <summary>
  19. ///
  20. /// </summary>
  21. /// <param name="item"></param>
  22. /// <returns></returns>
  23. string EnQueue(IPsQueueItemDescriptor item);
  24. bool DeQueue(string itemId, bool force);
  25. #endregion
  26. }
  27. }