private void awaitAllClosingTransactions() { KernelTransactions kernelTransactions = kernelModule.kernelTransactions(); kernelTransactions.terminateTransactions(); while ( kernelTransactions.haveClosingTransaction() ) { LockSupport.parkNanos( TimeUnit.MILLISECONDS.toNanos( 10 ) ); } }
private void clearTransactions() { // We don't want to have buffered ids carry over to the new role storageEngine.clearBufferedIds(); // Get rid of all pooled transactions, as they will otherwise reference // components that have been swapped out during the mode switch. kernelModule.kernelTransactions().disposeAll(); }
Supplier<KernelTransactionsSnapshot> transactionsSnapshotSupplier = () -> kernelModule.kernelTransactions().get(); idController.initialize( transactionsSnapshotSupplier );
private void awaitAllClosingTransactions() { KernelTransactions kernelTransactions = kernelModule.kernelTransactions(); kernelTransactions.terminateTransactions(); while ( kernelTransactions.haveClosingTransaction() ) { LockSupport.parkNanos( TimeUnit.MILLISECONDS.toNanos( 10 ) ); } }
private void clearTransactions() { // We don't want to have buffered ids carry over to the new role storageEngine.clearBufferedIds(); // Get rid of all pooled transactions, as they will otherwise reference // components that have been swapped out during the mode switch. kernelModule.kernelTransactions().disposeAll(); }
Supplier<KernelTransactionsSnapshot> transactionsSnapshotSupplier = () -> kernelModule.kernelTransactions().get(); idController.initialize( transactionsSnapshotSupplier );