/** * Returns the next timestamp from the {@link ILocalTransactionManager}. * <p> * Note: This is a convenience method. The implementation of this method is * delegated to the object returned by {@link #getTransactionService()}. * * @deprecated This is here for historical reasons and is only used by the * test suite. Use {@link #getLocalTransactionManager()} and * {@link ITransactionService#nextTimestamp()}. * * @see ITransactionService#nextTimestamp() */ final public long nextTimestamp() { return localTransactionManager.nextTimestamp(); }
/** * Returns the next timestamp from the {@link ILocalTransactionManager}. * <p> * Note: This is a convenience method. The implementation of this method is * delegated to the object returned by {@link #getTransactionService()}. * * @deprecated This is here for historical reasons and is only used by the * test suite. Use {@link #getLocalTransactionManager()} and * {@link ITransactionService#nextTimestamp()}. * * @see ITransactionService#nextTimestamp() */ final public long nextTimestamp() { return localTransactionManager.nextTimestamp(); }
/** * Test that {@link Journal#getCommitRecord(long)} returns null if invoked * before anything has been committed. * * @throws IOException */ public void test_behaviorBeforeAnythingIsCommitted() throws IOException { final Journal journal = new Journal(getProperties()); try { assertNull(journal.getCommitRecord(journal .getLocalTransactionManager().nextTimestamp())); } finally { journal.destroy(); } }
/** * Test that {@link Journal#getCommitRecord(long)} returns null if invoked * before anything has been committed. * * @throws IOException */ public void test_behaviorBeforeAnythingIsCommitted() throws IOException { final Journal journal = new Journal(getProperties()); try { assertNull(journal.getCommitRecord(journal .getLocalTransactionManager().nextTimestamp())); } finally { journal.destroy(); } }
final long ts = journal.getLocalTransactionManager().nextTimestamp();
final long ts = journal.getLocalTransactionManager().nextTimestamp();