1 package org.jgroups.util; 2 3 4 import java.util.Map ; 5 import java.util.Collection ; 6 import java.util.Iterator ; 7 import java.util.concurrent.ConcurrentHashMap ; 8 import java.util.concurrent.BlockingQueue ; 9 import java.util.concurrent.TimeUnit ; 10 11 25 public class SizeBoundedQueue implements BlockingQueue { 26 int max_size=1000 * 1000; 27 int capacity=0; 28 29 final Map ucast_msgs=new ConcurrentHashMap (10); 30 31 final Map mcast_msgs=new ConcurrentHashMap (10); 32 33 34 public boolean add(Object o) { 35 return false; 36 } 37 38 public int drainTo(Collection c) { 39 return 0; 40 } 41 42 public int drainTo(Collection c, int maxElements) { 43 return 0; 44 } 45 46 public boolean offer(Object o) { 47 return false; 48 } 49 50 public boolean offer(Object o, long timeout, TimeUnit unit) throws InterruptedException { 51 return false; 52 } 53 54 public Object poll(long timeout, TimeUnit unit) throws InterruptedException { 55 return null; 56 } 57 58 public void put(Object o) throws InterruptedException { 59 } 60 61 public int remainingCapacity() { 62 return 0; 63 } 64 65 public Object take() throws InterruptedException { 66 return null; 67 } 68 69 70 public Object element() { 71 return null; 72 } 73 74 public Object peek() { 75 return null; 76 } 77 78 public Object poll() { 79 return null; 80 } 81 82 public Object remove() { 83 return null; 84 } 85 86 public boolean addAll(Collection c) { 87 return false; 88 } 89 90 public void clear() { 91 } 92 93 public boolean contains(Object o) { 94 return false; 95 } 96 97 public boolean containsAll(Collection c) { 98 return false; 99 } 100 101 public boolean isEmpty() { 102 return false; 103 } 104 105 public Iterator iterator() { 106 return null; 107 } 108 109 public boolean remove(Object o) { 110 return false; 111 } 112 113 public boolean removeAll(Collection c) { 114 return false; 115 } 116 117 public boolean retainAll(Collection c) { 118 return false; 119 } 120 121 public int size() { 122 return 0; 123 } 124 125 public Object [] toArray() { 126 return new Object [0]; 127 } 128 129 public Object [] toArray(Object [] a) { 130 return new Object [0]; 131 } 132 } 133 | Popular Tags |