Was this page helpful?

ProcessingQueue<T> Class

    Table of Contents
    public class ProcessingQueue<T>
    Namespace: MindTouch.Collections
    Assembly: mindtouch.dream
    Type Hierarchy:
    • object
      • ProcessingQueue<T>
    Implements:
    Provides a mechanism for dispatching work items against an MindTouch.Threading.IDispatchQueue.

    Generic Parameters

    Parameter T

    Type of work item that can be dispatched.
    Constraints:
    none

    Members

    Constructors

    Visibility Description
    Public ProcessingQueue(Action<T,Action> handler, int maxParallelism, IDispatchQueue dispatchQueue) Create an instance of the work queue.
    Public ProcessingQueue(Action<T,Action> handler, IDispatchQueue dispatchQueue) Create an instance of the work queue.
    Public ProcessingQueue(Action<T,Action> handler, int maxParallelism) Create an instance of the work queue.
    Public ProcessingQueue(Action<T,Action> handler) Create an instance of the work queue.
    Public ProcessingQueue(Action<T> handler, int maxParallelism, IDispatchQueue dispatchQueue) Create an instance of the work queue.
    Public ProcessingQueue(Action<T> handler, IDispatchQueue dispatchQueue) Create an instance of the work queue.
    Public ProcessingQueue(Action<T> handler, int maxParallelism) Create an instance of the work queue.
    Public ProcessingQueue(Action<T> handler) Create an instance of the work queue.

    Properties

    Visibility Description
    Public IsEmpty True if the queue is empty.
    Public Count Total number of items in queue.

    Methods

    Visibility Description
    Public TryEnqueue(T item) Try to queue a work item for dispatch.
    Public TryDequeue(out T item) This method is not supported and throws System.NotSupportedException.
    Public Dispose() Release the resources reserved by the work queue from the global thread pool.
    Public ToString() (Inherited from Object)
    Public Equals(object obj) (Inherited from Object)
    Public GetHashCode() (Inherited from Object)
    Public GetType() (Inherited from Object)
    Protected MemberwiseClone() (Inherited from Object)
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by