@Override
	public void addEvent(Event event) {
		if(! initializedProperly) {
			throw new IllegalStateException(getUninitializedMessage());
		}
		
		String message = gson.toJson(event);
		
		try {
			RabbitMqUtils.sendMessage(message, Arrays.asList(APPSENSOR_ADD_EVENT_QUEUE), environment);
		} catch (IOException e) {
			logger.error("Failed to send add event message to output queue.", e);
		}
	}
@ Override public void addEvent ( Event event ) { if ( ! initializedProperly ) { throw new IllegalStateException ( getUninitializedMessage ( ) ) ; } String message = gson . toJson ( event ) ; try { RabbitMqUtils . sendMessage ( message , Arrays . asList ( APPSENSOR_ADD_EVENT_QUEUE ) , environment ) ; } catch ( IOException e ) { logger . error ( "Failed to send add event message to output queue." , e ) ; } }
{@inheritDoc}