1 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 ; 13 import java.util.List ; 14 15 18 public class NullSink implements Sink { 19 public NullSink() { 20 } 22 23 public boolean addLossy(EventContext context) { 24 return false; 25 } 26 27 public void addMany(Collection contexts) { 28 } 30 31 public void add(EventContext context) { 32 } 34 35 public void setAddPredicate(AddPredicate predicate) { 36 } 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 } | Popular Tags |