1 /*------------------------------------------------------------------------------
2 Name: RamQueuePlugin.cs
3 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
4 ------------------------------------------------------------------------------*/
5
6 using System.Text;
7 using System.Collections;
8
9 namespace org.xmlBlaster.util
10 {
11 public class RamQueuePlugin : I_Queue
12 {
13 //private long sizeInBytes = 0L;
14 private long persistentSizeInBytes = 0L;
15 private long numOfPersistentEntries = 0L;
16 private long maxNumOfBytes;
17 //private Hashtable storage;
18
19 public void Initialize(object /*StorageId*/ storageId, Hashtable properties)
20 {
21 this.maxNumOfBytes = 10000000;
22 }
23
24 public void Put(I_QueueEntry queueEntry)
25 {
26 }
27
28 public I_QueueEntry Peek()
29 {
30 return null;
31 }
32
33 public int Remove()
34 {
35 return 0;
36 }
37
38 public long GetNumOfPersistentEntries()
39 {
40 return this.numOfPersistentEntries;
41 }
42
43 public long GetNumOfPersistentBytes()
44 {
45 return this.persistentSizeInBytes;
46 }
47
48 public long GetMaxNumOfBytes()
49 {
50 return this.maxNumOfBytes;
51 }
52
53 public long Clear()
54 {
55 return 0;
56 }
57
58 public void Shutdown()
59 {
60 }
61 }
62 } // namespace
syntax highlighted by Code2HTML, v. 0.9.1