Here is an example of how you would use this class:
SplitTransaction st = new SplitTransaction(this.conf, parent, midKey) if (!st.prepare()) return; try { st.execute(server, services); } catch (IOException ioe) { try { st.rollback(server, services); return; } catch (RuntimeException e) { myAbortable.abort("Failed split, abort"); } }
This class is not thread safe. Caller needs ensure split is run by one thread only.
|
|