org.openstreetmap.osmosis.core.apidb.v0_6.impl
Class TransactionSnapshot

java.lang.Object
  extended by org.openstreetmap.osmosis.core.apidb.v0_6.impl.TransactionSnapshot

public class TransactionSnapshot
extends java.lang.Object

Represents the data associated with a database transaction snapshot providing information about currently in-flight transactions.


Constructor Summary
TransactionSnapshot(java.lang.String snapshotString)
          Creates a new instance.
 
Method Summary
 java.util.List<java.lang.Long> getXIpList()
          Gets the list of active transactions.
 long getXMax()
          Gets the next transaction to be created.
 long getXMin()
          Gets the earliest still active transaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionSnapshot

public TransactionSnapshot(java.lang.String snapshotString)
Creates a new instance.

Parameters:
snapshotString - The snapshot string in format "xMin:xMax:inflight1,inflight2,...".
Method Detail

getXMin

public long getXMin()
Gets the earliest still active transaction.

Returns:
The transaction id.

getXMax

public long getXMax()
Gets the next transaction to be created.

Returns:
The transaction id.

getXIpList

public java.util.List<java.lang.Long> getXIpList()
Gets the list of active transactions.

Returns:
The transaction ids.