Gemstone Threading Library
Show/Hide TOC

# ProcessQueue T CreateSynchronousQueue(ProcessQueue T ProcessItemFunctionSignature, 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.162 -- Release Build+7fb59487e2752bb14cc6b30d8b8d9d6a88cf222f
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 ProcessQueueT ProcessItemFunctionSignature
  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

ProcessQueue T
A ProcessQueue object based on type T.

## See Also

#### Reference

ProcessQueueT Class
CreateSynchronousQueue Overload
Gemstone.Threading.Collections Namespace