Code example for PriorityBlockingQueue

Methods: peek

0
			return backingQueue.element().runnable; 
		} 
 
		@Override 
		public Runnable peek() { 
			return backingQueue.peek().runnable; 
		} 
 
		@Override 
		public Runnable poll() { 
			return backingQueue.poll().runnable; 
		} 
 
		@Override 
		public Runnable remove() { 
			return backingQueue.remove().runnable; 
		} 
 
		@Override 
		public boolean addAll(Collection<? extends Runnable> arg0) { 
			for(Runnable r : arg0){