Remove unnecessary method
This commit is contained in:
parent
f2ecb3a1eb
commit
2c135c2e26
1 changed files with 1 additions and 5 deletions
|
@ -23,10 +23,6 @@ public class Locker<V>{
|
|||
this.map.remove(key);
|
||||
}
|
||||
|
||||
private BlockingQueue<V> get(Key key){
|
||||
return this.map.get(key);
|
||||
}
|
||||
|
||||
public void pushValue(V value){
|
||||
for(BlockingQueue<V> queue : this.map.values()){
|
||||
queue.add(value);
|
||||
|
@ -35,7 +31,7 @@ public class Locker<V>{
|
|||
}
|
||||
|
||||
public V getValue(Key key) throws InterruptedException{
|
||||
BlockingQueue<V> queue = get(key);
|
||||
BlockingQueue<V> queue = this.map.get(key);
|
||||
lock(queue);
|
||||
return queue.poll();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue