Code example for ConcurrentHashMap

Methods: get, remove

0
	} 
 
	@Override 
	public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException
	{ 
		Long timestamp = mUris.get(uri);
		if (timestamp != null)
		{ 
			long elapsed = SystemClock.uptimeMillis() - timestamp;
			if (elapsed > 0 && elapsed < URI_VALIDITY)
			{	/* we fail if clock wrapped, should happen rarely though */ 
				return ParcelFileDescriptor.open(mLogFile, ParcelFileDescriptor.MODE_CREATE | ParcelFileDescriptor.MODE_READ_ONLY);
			} 
			mUris.remove(uri);
		} 
		return super.openFile(uri, mode);
	} 
 
	@Override 
	public Uri insert(Uri uri, ContentValues values)
	{