01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.async.impl;
05:
06: import com.tc.async.api.AddPredicate;
07: import com.tc.async.api.EventContext;
08: import com.tc.async.api.Sink;
09: import com.tc.exception.ImplementMe;
10: import com.tc.stats.Stats;
11:
12: import java.util.Collection;
13: import java.util.List;
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 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 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: }
|