Gemstone Threading Library
Show/Hide TOC

# ProcessQueueTCreateSynchronousQueue(ProcessQueueTProcessItemFunctionSignature, Double, Int32, Boolean, Boolean) Method

Creates a new synchronous ProcessQueueT (i.e., single process thread) using specified settings.

## Definition

Namespace: Gemstone.Threading.Collections
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.155 -- Release Build+fbb54a9347e09f19695376cbf86e09a9ff9ee9ca
C#
View Source Request Example

    public static ProcessQueue<T> CreateSynchronousQueue(
    	ProcessQueueTProcessItemFunctionSignature processItemFunction,
    	double processInterval,
    	int processTimeout,
    	bool requeueOnTimeout,
    	bool requeueOnException
    )

VB
View Source Request Example

    Public Shared Function CreateSynchronousQueue (
    	processItemFunction As ProcessQueueTProcessItemFunctionSignature,
    	processInterval As Double,
    	processTimeout As Integer,
    	requeueOnTimeout As Boolean,
    	requeueOnException As Boolean
    ) As ProcessQueue(Of T)

C++
View Source Request Example

    public:
    static ProcessQueue<T>^ CreateSynchronousQueue(
    	ProcessQueueTProcessItemFunctionSignature^ processItemFunction,
    	double processInterval,
    	int processTimeout,
    	bool requeueOnTimeout,
    	bool requeueOnException
    )

JavaScript
View Source Request Example

    Gemstone.Threading.Collections.ProcessQueue.CreateSynchronousQueue = function(processItemFunction, processInterval, processTimeout, requeueOnTimeout, requeueOnException);

#### Parameters

processItemFunction ProcessQueueTProcessItemFunctionSignature
  Delegate that processes one item at a time.
processInterval Double
  a Double value which represents the process interval in milliseconds.
processTimeout Int32
  The number of seconds before a process should timeout.
requeueOnTimeout Boolean
  A Boolean value that indicates whether a process should requeue an item on timeout.
requeueOnException Boolean
  A Boolean value that indicates whether a process should requeue after an exception.

#### Return Value

ProcessQueueT
A ProcessQueue object based on type T.

## See Also

#### Reference

ProcessQueueT Class
CreateSynchronousQueue Overload
Gemstone.Threading.Collections Namespace