org.compass.core.lucene.engine.transaction.readcommitted
Class ReadCommittedTransactionProcessorFactory

java.lang.Object
  extended by org.compass.core.lucene.engine.transaction.readcommitted.ReadCommittedTransactionProcessorFactory
All Implemented Interfaces:
TransactionProcessorFactory

public class ReadCommittedTransactionProcessorFactory
extends Object
implements TransactionProcessorFactory

A transaction processor factory that creates ReadCommittedTransactionProcessor instances.

Read committed transaction processor allows to isolate changes done during a transaction from other transactions until commit. It also allows for load/get/find operations to take into account changes done during the current transaction. This means that a delete that occurs during a transaction will be filtered out if a search is executed within the same transaction just after the delete.

Author:
kimchy
See Also:
ReadCommittedTransactionProcessor

Constructor Summary
ReadCommittedTransactionProcessorFactory()
           
 
Method Summary
 void close()
          Closes the transaction factory.
 TransactionProcessor create(LuceneSearchEngine searchEngine)
          Constructs a new ReadCommittedTransactionProcessor.
 boolean isThreadSafe()
          Read committed transaction processor is not threads safe.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadCommittedTransactionProcessorFactory

public ReadCommittedTransactionProcessorFactory()
Method Detail

create

public TransactionProcessor create(LuceneSearchEngine searchEngine)
Constructs a new ReadCommittedTransactionProcessor.

Specified by:
create in interface TransactionProcessorFactory

close

public void close()
Description copied from interface: TransactionProcessorFactory
Closes the transaction factory.

Specified by:
close in interface TransactionProcessorFactory

isThreadSafe

public boolean isThreadSafe()
Read committed transaction processor is not threads safe.

Specified by:
isThreadSafe in interface TransactionProcessorFactory


Copyright (c) 2004-2009 The Compass Project.