org.sakaiproject.search.transaction.impl
Class TransactionSequenceImpl
java.lang.Object
org.sakaiproject.search.transaction.impl.TransactionSequenceImpl
- All Implemented Interfaces:
- TransactionSequence
public class TransactionSequenceImpl
- extends Object
- implements TransactionSequence
- Author:
- ieb Unit test
- See Also:
org.sakaiproject.search.indexer.impl.test.SequenceGeneratorDisabled
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionSequenceImpl
public TransactionSequenceImpl()
destroy
public void destroy()
init
public void init()
- Loads the first transaction to initialize
getNextId
public long getNextId()
- Description copied from interface:
TransactionSequence
- This returns a safe clusterwide id
- Specified by:
getNextId in interface TransactionSequence
- Returns:
getDatasource
public DataSource getDatasource()
- Returns:
- the datasource
setDatasource
public void setDatasource(DataSource datasource)
- Parameters:
datasource - the datasource to set
getName
public String getName()
- Returns:
- the name
setName
public void setName(String name)
- Parameters:
name - the name to set
getLocalId
public long getLocalId()
- Description copied from interface:
TransactionSequence
- This retuns the next id for the local JVM
- Specified by:
getLocalId in interface TransactionSequence
- Returns:
getMaxValue
public long getMaxValue()
- Returns:
- the maxValue
setMaxValue
public void setMaxValue(long maxValue)
- Parameters:
maxValue - the maxValue to set
getMinValue
public long getMinValue()
- Returns:
- the minValue
setMinValue
public void setMinValue(long minValue)
- Parameters:
minValue - the minValue to set
Copyright © 2003-2012 Sakai Project. All Rights Reserved.