@ SuppressWarnings ( "unchecked" ) private void doMessage ( final JsonObject message ) { Object value = deserializer . deserialize ( message ) ; if ( value != null && messageHandler != null ) { if ( log . isDebugEnabled ( ) ) { log . debug ( String . format ( "%s - Received: Message[id=%d, value=%s]" , this , message . getLong ( "id" ) , value ) ) ; } messageHandler . handle ( value ) ; } for ( InputHook hook : hooks ) { hook . handleReceive ( value ) ; } }
Handles receiving a message .