org.compass.core.lucene.engine.transaction
Interface TransactionProcessorFactory

All Known Implementing Classes:
AsyncTransactionProcessorFactory, LuceneTransactionProcessorFactory, MTTransactionProcessorFactory, ReadCommittedTransactionProcessorFactory, SearchTransactionProcessorFactory, TerracottaTransactionProcessorFactory

public interface TransactionProcessorFactory

A transaction processor factory resposible for creating TransactionProcessor instances.

Possibly, the factory can hold state (such as connection) that the processor can use (processors are created per transaction).

Optionally, the transaction processor can implments CompassConfigurable to be injected with Compass settings. It can also implement CompassMappingAware to be injected with CompassMapping.

Author:
kimchy

Method Summary
 void close()
          Closes the transaction factory.
 TransactionProcessor create(LuceneSearchEngine searchEngine)
          Creates a new transaction processor to handle a transaction.
 boolean isThreadSafe()
          Retruns true if the transaction processor created by the factory is thread safe.
 

Method Detail

create

TransactionProcessor create(LuceneSearchEngine searchEngine)
Creates a new transaction processor to handle a transaction.


close

void close()
Closes the transaction factory.


isThreadSafe

boolean isThreadSafe()
Retruns true if the transaction processor created by the factory is thread safe.



Copyright (c) 2004-2009 The Compass Project.