24 lines
611 B
C#
24 lines
611 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace BCG
|
|
{
|
|
/// <summary>
|
|
/// interface added to support the new implementation
|
|
/// of the sync queue (so that it can be switched back
|
|
/// n forth by a config switch)
|
|
/// </summary>
|
|
/// <typeparam name="T"></typeparam>
|
|
public interface ISyncQueue<T>
|
|
{
|
|
void enqueue(T t);
|
|
T dequeue(int timeout);
|
|
T dequeue();
|
|
List<T> dequeueMultipleElements(int timeout, int maxElements);
|
|
List<T> dequeueMultipleElements(TimeSpan ts, int maxElements);
|
|
int getCount();
|
|
}
|
|
}
|