org.prevayler.implementation
Class PrevalentSystemGuard<P>
java.lang.Object
org.prevayler.implementation.PrevalentSystemGuard<P>
- All Implemented Interfaces:
- TransactionSubscriber
public class PrevalentSystemGuard<P>
- extends Object
- implements TransactionSubscriber
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrevalentSystemGuard
public PrevalentSystemGuard(P prevalentSystem,
long systemVersion,
Serializer journalSerializer)
prevalentSystem
public P prevalentSystem()
subscribeTo
public void subscribeTo(TransactionPublisher publisher)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
receive
public void receive(TransactionTimestamp transactionTimestamp)
- Specified by:
receive
in interface TransactionSubscriber
executeQuery
public <R> R executeQuery(Query<? super P,R> sensitiveQuery,
Clock clock)
throws Exception
- Throws:
Exception
takeSnapshot
public File takeSnapshot(GenericSnapshotManager<P> snapshotManager)
throws Exception
- Throws:
Exception
deepCopy
public PrevalentSystemGuard<P> deepCopy(long systemVersion,
Serializer snapshotSerializer)
throws Exception
- Throws:
Exception
Copyright © 2001-2013. All Rights Reserved.