infinispan/infinispan — pull request #1407 by anistor (2012-10-18 15:19:25+00:00)
Title: Lookup optimisation in TransactionTable.getLocalTransaction and cleanup in BaseRpcInterceptor hierarchy

* Optimize LocalTransaction TransactionTable.getLocalTransaction(GlobalTransaction txId) by introducing another internal map that maps GlobalTransactions to LocalTransactions and update it in parallel with existing localTransactions map. This avoids iterating over localTransactions.values() when we need to lookup a LocalTransaction given a GlobalTransaction.

* Fix minor generics warning in LocalTransaction.

* Remove unused imports and unused members in interceptors.

* BaseBackupInterceptor now extends directly from CommandInterceptor instead of BaseRpcInterceptor. It was not using anything inherited from BaseRpcInterceptor.