Code example for ConcurrentHashMap

Methods: isEmpty

0
	/** 
	 * @return true if there are no more pending futures. 
	 */ 
	public boolean isEmpty() 
	{ 
		return this.pendingFutures.isEmpty();
	} 
	 
	/** 
	 * If any futures are pending, check if they are done.  This will process their callbacks. 
	 */ 
	public void checkPendingFutures() 
	{ 
		// Re-entrancy would cause us to recurse endlessly 
		if (this.iterating)
			return; 
			 
		try 
		{ 
			this.iterating = true;