Code example for PriorityBlockingQueue

Methods: isEmpty

0
			} 
		} 
	} 
 
	private void stopIfQueuesEmpty(){ 
		if (syncQueue.isEmpty()){
			stopSelf();
		} 
	} 
 
	private static final int MSG_DONE = 0;
 
	private final Handler mDoneTimeout = new Handler() {
		@Override 
		public void handleMessage(Message msg) { 
			switch (msg.what) { 
			case MSG_DONE: 
				stopIfQueuesEmpty(); 
				break; 
			} 
		}