@ Subscribe public void processEvent ( CollectionUpdateEvent event ) { if ( ! config . collectionName . equals ( event . getCollectionName ( ) ) ) return ; // not for me try { update ( event . getType ( ) ) ; } catch ( IOException e ) { logger . error ( "Error processing event" , e ) ; } }
called by eventBus this is where the trigger comes in