Errai 3.0.1-SNAPSHOT

org.jboss.errai.otec.client
Class TransactionLogImpl

java.lang.Object
  extended by org.jboss.errai.otec.client.TransactionLogImpl
All Implemented Interfaces:
TransactionLog

public class TransactionLogImpl
extends Object
implements TransactionLog

Author:
Christian Sadilek , Mike Brock

Method Summary
 void appendLog(OTOperation operation)
           
 void cleanLog()
           
static TransactionLog createTransactionLog(OTEntity entity)
           
 List<OTOperation> getCanonLog()
           
 LogQuery getEffectiveStateForRevision(int revision)
           
 List<OTOperation> getLocalOpsSinceRemoteOperation(OTOperation operation, boolean includeNonCanon)
           
 Object getLock()
           
 List<OTOperation> getLog()
           
 List<OTOperation> getRemoteOpsSinceRevision(String agentId, int rev)
           
 void insertLog(int revision, OTOperation operation)
           
 void markDirty()
           
 void pruneFromOperation(OTOperation operation)
           
 int purgeTo(int revision)
           
 void snapshot()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

createTransactionLog

public static TransactionLog createTransactionLog(OTEntity entity)

getLock

public Object getLock()
Specified by:
getLock in interface TransactionLog

getLog

public List<OTOperation> getLog()
Specified by:
getLog in interface TransactionLog

purgeTo

public int purgeTo(int revision)
Specified by:
purgeTo in interface TransactionLog

pruneFromOperation

public void pruneFromOperation(OTOperation operation)
Specified by:
pruneFromOperation in interface TransactionLog

getLocalOpsSinceRemoteOperation

public List<OTOperation> getLocalOpsSinceRemoteOperation(OTOperation operation,
                                                         boolean includeNonCanon)
Specified by:
getLocalOpsSinceRemoteOperation in interface TransactionLog

getRemoteOpsSinceRevision

public List<OTOperation> getRemoteOpsSinceRevision(String agentId,
                                                   int rev)
Specified by:
getRemoteOpsSinceRevision in interface TransactionLog

getCanonLog

public List<OTOperation> getCanonLog()
Specified by:
getCanonLog in interface TransactionLog

getEffectiveStateForRevision

public LogQuery getEffectiveStateForRevision(int revision)
Specified by:
getEffectiveStateForRevision in interface TransactionLog

appendLog

public void appendLog(OTOperation operation)
Specified by:
appendLog in interface TransactionLog

insertLog

public void insertLog(int revision,
                      OTOperation operation)
Specified by:
insertLog in interface TransactionLog

markDirty

public void markDirty()
Specified by:
markDirty in interface TransactionLog

snapshot

public void snapshot()
Specified by:
snapshot in interface TransactionLog

cleanLog

public void cleanLog()
Specified by:
cleanLog in interface TransactionLog

toString

public String toString()
Overrides:
toString in class Object

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.