org.sakaiproject.search.transaction.api
Interface TransactionSequence

All Known Implementing Classes:
LocalTransactionSequenceImpl, TransactionSequenceImpl

public interface TransactionSequence

Generates a transaction sequence. The implementation of this interface must operate in thread safe fashon over the entire cluster returning the next id in the sequence at all times.

Author:
ieb

Method Summary
 long getLocalId()
          This retuns the next id for the local JVM
 long getNextId()
          This returns a safe clusterwide id
 

Method Detail

getNextId

long getNextId()
This returns a safe clusterwide id

Returns:

getLocalId

long getLocalId()
This retuns the next id for the local JVM

Returns:


Copyright © 2003-2012 Sakai Project. All Rights Reserved.