public boolean removeEntityListener ( String repoFullName , EntityListener entityListener ) { lock . writeLock ( ) . lock ( ) ; try { verifyRepoRegistered ( repoFullName ) ; SetMultimap < Object , EntityListener > entityListeners = this . entityListenersByRepo . get ( repoFullName ) ; if ( entityListeners . containsKey ( entityListener . getEntityId ( ) ) ) { entityListeners . remove ( entityListener . getEntityId ( ) , entityListener ) ; return true ; } return false ; } finally { lock . writeLock ( ) . unlock ( ) ; } }
Removes an entity listener for a entity of the given class