Code example for HashMap

Methods: remove

0
        _processors.put(commandName, processor);
    } 
	 
	public void unregister(String commandName)
	{ 
		_processors.remove(commandName);
	} 
	 
	public Future<DatabusRequest> run(DatabusRequest request)
	{ 
		RequestProcessor processor = _processors.get(request.getName());
		if (null == processor)
		{ 
			processor = UNKOWN_COMMAND_PROCESSOR;
		} 
		request.setProcessor(processor);
		 
		ExecutorService procExecutor = processor.getExecutorService();
		if (null != procExecutor)
		{ 
		  return procExecutor.submit(request);