Code example for LinkedHashMap

Methods: put

0
			replyHandler.set(id(), eventId.get(), reply);
			return this;
		} 
 
		protected void doSend(String type, Object data, boolean reply) {
			Map<String, Object> message = new LinkedHashMap<String, Object>();
 
			message.put("id", eventId.incrementAndGet());
			message.put("type", type);
			message.put("data", data);
			message.put("reply", reply);
 
			logger.info("Socket#{} is sending an event {}", id(), message);
			if (param("transport").startsWith("longpoll")) {
				cache.add(message);
			} 
			transmit(format(message));
		} 
 
		protected String format(Object message) {
			StringBuilder builder = new StringBuilder();