Package org.prevayler.implementation

Examples of org.prevayler.implementation.TransactionTimestamp.systemVersion()


      return;
    }

    TransactionTimestamp transactionTimestamp = (TransactionTimestamp) transactionCandidate;
    Date timestamp = transactionTimestamp.executionTime();
    long systemVersion = transactionTimestamp.systemVersion();

    _clock.advanceTo(timestamp);

    if (transactionTimestamp.capsule() == null) {
      _subscriber.receive(new TransactionTimestamp(_myCapsule, systemVersion, timestamp));
View Full Code Here


      throw new IOException("The transaction journal has not yet reached transaction " + initialTransaction + ". The last logged transaction was " + (_initialTransaction + journal.size() - 1) + ".");

    while (i != journal.size()) {
      TransactionTimestamp entry = (TransactionTimestamp) journal.get(i);
      long recoveringTransaction = _initialTransaction + i;
      if (entry.systemVersion() != recoveringTransaction) {
        throw new IOException("Expected " + recoveringTransaction + " but was " + entry.systemVersion());
      }
      subscriber.receive(entry);
      i++;
    }
View Full Code Here

    while (i != journal.size()) {
      TransactionTimestamp entry = (TransactionTimestamp) journal.get(i);
      long recoveringTransaction = _initialTransaction + i;
      if (entry.systemVersion() != recoveringTransaction) {
        throw new IOException("Expected " + recoveringTransaction + " but was " + entry.systemVersion());
      }
      subscriber.receive(entry);
      i++;
    }
  }
View Full Code Here

                journal + ", but only " + _journalSuffix + " files are supported");
          }

          TransactionTimestamp entry = TransactionTimestamp.fromChunk(chunk);

          if (entry.systemVersion() != recoveringTransaction) {
            throw new IOException("Expected " + recoveringTransaction + " but was " + entry.systemVersion());
          }

          subscriber.receive(entry);
        }
View Full Code Here

          }

          TransactionTimestamp entry = TransactionTimestamp.fromChunk(chunk);

          if (entry.systemVersion() != recoveringTransaction) {
            throw new IOException("Expected " + recoveringTransaction + " but was " + entry.systemVersion());
          }

          subscriber.receive(entry);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.