void function ( final Consumer < DBBroker > arg0 ) { withLock ( broker -> { arg0 . accept ( broker ) ; return null ; } ) ; }
run a consumer within a lock on the transaction manager . make sure locks are acquired in the right order . concode_field_sep Lock lock concode_elem_sep Map<Long,TxnCounter> transactions concode_elem_sep int counter concode_elem_sep BrokerPool pool concode_elem_sep SystemTaskManager systemTaskManager concode_elem_sep Logger LOG concode_elem_sep long nextTxnId concode_elem_sep Optional<JournalManager> journalManager concode_field_sep void checkpoint concode_elem_sep Lock getLock concode_elem_sep void debug concode_elem_sep void trackOperation concode_elem_sep void reindex concode_elem_sep int uncommittedTransaction concode_elem_sep void commit concode_elem_sep void increment concode_elem_sep void processSystemTasks concode_elem_sep Txn beginTransaction concode_elem_sep void abort concode_elem_sep void triggerSystemTask concode_elem_sep void close concode_elem_sep void shutdown concode_elem_sep void shutdown