KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > async > impl > NullSink


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.async.impl;
5
6 import com.tc.async.api.AddPredicate;
7 import com.tc.async.api.EventContext;
8 import com.tc.async.api.Sink;
9 import com.tc.exception.ImplementMe;
10 import com.tc.stats.Stats;
11
12 import java.util.Collection JavaDoc;
13 import java.util.List JavaDoc;
14
15 /**
16  * @author steve
17  */

18 public class NullSink implements Sink {
19   public NullSink() {
20     //
21
}
22
23   public boolean addLossy(EventContext context) {
24     return false;
25   }
26
27   public void addMany(Collection JavaDoc contexts) {
28     //
29
}
30
31   public void add(EventContext context) {
32     //
33
}
34
35   public void setAddPredicate(AddPredicate predicate) {
36     //
37
}
38
39   public AddPredicate getPredicate() {
40     return null;
41   }
42
43   public int size() {
44     return 0;
45   }
46
47   public void clear() {
48     throw new ImplementMe();
49   }
50
51   public void pause(List JavaDoc pauseTokens) {
52     throw new ImplementMe();
53     
54   }
55
56   public void unpause() {
57     throw new ImplementMe();
58     
59   }
60
61   public void enableStatsCollection(boolean enable) {
62     throw new ImplementMe();
63   }
64
65   public Stats getStats(long frequency) {
66     throw new ImplementMe();
67   }
68
69   public Stats getStatsAndReset(long frequency) {
70     throw new ImplementMe();
71   }
72
73   public boolean isStatsCollectionEnabled() {
74     throw new ImplementMe();
75   }
76
77   public void resetStats() {
78     throw new ImplementMe();
79     
80   }
81
82 }
Popular Tags