Code example for ConcurrentMap

Methods: clear

0
	} 
 
	@Override 
	public void stop() { 
		log.info("stopping Voldemort");
		this.tableIds.clear();
		this.clientFactory.close();
	} 
 
	@Override 
	protected void putEntityToDatastore(EntityKey key, Map<String, Object> tuple) {
		this.connectToServerIfNeeded();
		log.info("putting to voldemort key: " + key + " value: "
				+ tuple.toString());
		try { 
			this.addEntryToIdTable(key);
			this.client.put(key.getEntityKeyAsMap(),
					this.mapper.writeValueAsBytes(tuple));
		} catch (JsonGenerationException e) {
			this.checkAndRemoveEntry(key);
			this.throwHibernateExceptionFrom(e);