private void handleIncomingEvent ( final Message message ) { switch ( EventTopic . valueOf ( getStringHeaderKey ( message , MessageHeaderKey . TOPIC , "EventTopic is null" ) ) ) { case UPDATE_ACTION_STATUS : updateActionStatus ( message ) ; break ; case UPDATE_ATTRIBUTES : updateAttributes ( message ) ; break ; default : logAndThrowMessageError ( message , "Got event without appropriate topic." ) ; break ; } }
Method to handle the different topics to an event .