fabric.store
Class PrepareRequest

java.lang.Object
  extended by fabric.store.PrepareRequest

public final class PrepareRequest
extends java.lang.Object

A convenience class for grouping together the created, modified, and read object sets of a prepare request.

Author:
mdgeorge

Field Summary
 long commitTime
          The commit time of the transaction, as proposed by the worker
 java.util.Collection<SerializedObject> creates
          The set of created objects
 LongKeyMap<java.lang.Integer> reads
          The object numbers and version numbers of the read objects
 long tid
           
 java.util.Collection<SerializedObject> writes
          The collection of modified objects
 
Constructor Summary
PrepareRequest(long tid, long commitTime, java.util.Collection<SerializedObject> creates, java.util.Collection<SerializedObject> writes, LongKeyMap<java.lang.Integer> reads)
          Create a PrepareRequest with the provided fields
 
Method Summary
 
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

creates

public final java.util.Collection<SerializedObject> creates
The set of created objects


writes

public final java.util.Collection<SerializedObject> writes
The collection of modified objects


reads

public final LongKeyMap<java.lang.Integer> reads
The object numbers and version numbers of the read objects


commitTime

public final long commitTime
The commit time of the transaction, as proposed by the worker

Constructor Detail

PrepareRequest

public PrepareRequest(long tid,
                      long commitTime,
                      java.util.Collection<SerializedObject> creates,
                      java.util.Collection<SerializedObject> writes,
                      LongKeyMap<java.lang.Integer> reads)
Create a PrepareRequest with the provided fields