boolean isEmpty ( String repoFullName ) { lock . readLock ( ) . lock ( ) ; try { verifyRepoRegistered ( repoFullName ) ; return entityListenersByRepo . get ( repoFullName ) . isEmpty ( ) ; } finally { lock . readLock ( ) . unlock ( ) ; } }
Check if a repository has no listeners Repository must be registered