메소드 인큐
인큐(T)
IQueue 끝에 개체를 추가합니다.
선언
void Enqueue(T item)
파라미터
| 타입 | 이름 | 기술설명 |
|---|---|---|
| T | 목 | IQueue에 추가할 개체입니다. |
예
다음 코드 샘플은 분산 대기열에 객체를 대기열에 추가하는 방법을 보여줍니다.
ICache cache = CacheManager.GetCache("demoClusteredCache");
string dataTypeName = "DistributedQueue";
IDistributedQueue<Product> queue = cache.DataTypeManager.GetQueue<Product>(dataTypeName);
Product product = new Product();
product.Id = 1;
product.Name = "Chai";
queue.Enqueue(product);