fabric.store.db
Class ObjectDB.PendingTransaction

java.lang.Object
  extended by fabric.store.db.ObjectDB.PendingTransaction
All Implemented Interfaces:
FastSerializable, java.lang.Iterable<java.lang.Long>
Enclosing class:
ObjectDB

protected static final class ObjectDB.PendingTransaction
extends java.lang.Object
implements FastSerializable, java.lang.Iterable<java.lang.Long>

The data stored for a partially prepared transaction.


Field Summary
 java.util.Collection<SerializedObject> modData
          Objects that have been modified or created.
 NodePrincipal owner
           
 java.util.Collection<java.lang.Long> reads
           
 long tid
           
 
Constructor Summary
ObjectDB.PendingTransaction(java.io.ObjectInputStream in)
          Deserialization constructor.
 
Method Summary
 java.util.Iterator<java.lang.Long> iterator()
          Returns an iterator of onums involved in this transaction.
 void write(java.io.DataOutput out)
          Serializes this object out to the given output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tid

public final long tid

owner

public final NodePrincipal owner

reads

public final java.util.Collection<java.lang.Long> reads

modData

public final java.util.Collection<SerializedObject> modData
Objects that have been modified or created.

Constructor Detail

ObjectDB.PendingTransaction

public ObjectDB.PendingTransaction(java.io.ObjectInputStream in)
                            throws java.io.IOException
Deserialization constructor.

Throws:
java.io.IOException
Method Detail

iterator

public java.util.Iterator<java.lang.Long> iterator()
Returns an iterator of onums involved in this transaction.

Specified by:
iterator in interface java.lang.Iterable<java.lang.Long>

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Serializes this object out to the given output stream.

Specified by:
write in interface FastSerializable
Throws:
java.io.IOException