return transactionService.nextTimestamp();
return transactionService.nextTimestamp();
/** * This exposes the clock used to assign transaction identifiers and * commit times. It is being exposed to support certain kinds of * overrides for unit tests. * <p> * Note: This method is NOT exposed to RMI. However, it can still be * overridden by the unit tests. * * @return The next timestamp from that clock. */ public long nextTimestamp() { try { return AbstractJournal.this.getLocalTransactionManager() .getTransactionService().nextTimestamp(); } catch (IOException ex) { /* * Note: This is a local method call. IOException will not be * thrown. */ throw new RuntimeException(ex); } }
/** * This exposes the clock used to assign transaction identifiers and * commit times. It is being exposed to support certain kinds of * overrides for unit tests. * <p> * Note: This method is NOT exposed to RMI. However, it can still be * overridden by the unit tests. * * @return The next timestamp from that clock. */ public long nextTimestamp() { try { return AbstractJournal.this.getLocalTransactionManager() .getTransactionService().nextTimestamp(); } catch (IOException ex) { /* * Note: This is a local method call. IOException will not be * thrown. */ throw new RuntimeException(ex); } }