org.sakaiproject.search.transaction.api
Interface TransactionListener

All Known Subinterfaces:
IndexUpdateTransactionListener, MergeTransactionListener, OptimizeTransactionListener
All Known Implementing Classes:
DebugTransactionListener, JournaledFSIndexStorageUpdateTransactionListener, JournalManagerUpdateTransaction, JournalOptimizationEndTransactionListener, JournalOptimizationStartTransactionListener, JournalStorageUpdateTransactionListener, OptimizeSharedTransactionListenerImpl, OptimizeTransactionListenerImpl, SearchBuilderQueueManager, SharedFilesystemLoadTransactionListener, SharedFilesystemSaveTransactionListener

public interface TransactionListener

This listener is notified of changes in the transaction state.

Author:
ieb

Method Summary
 void close(IndexTransaction transaction)
           
 void commit(IndexTransaction transaction)
           
 void open(IndexTransaction transaction)
           
 void prepare(IndexTransaction transaction)
          Prepare to commit the transaction
 void rollback(IndexTransaction transaction)
           
 

Method Detail

prepare

void prepare(IndexTransaction transaction)
             throws IndexTransactionException
Prepare to commit the transaction

Parameters:
transaction -
Throws:
IndexJournalException
IndexTransactionException

commit

void commit(IndexTransaction transaction)
            throws IndexTransactionException
Parameters:
transaction -
Throws:
IndexTransactionException

rollback

void rollback(IndexTransaction transaction)
              throws IndexTransactionException
Parameters:
transaction -
Throws:
IndexTransactionException

open

void open(IndexTransaction transaction)
          throws IndexTransactionException
Parameters:
transaction -
Throws:
IndexTransactionException

close

void close(IndexTransaction transaction)
           throws IndexTransactionException
Parameters:
transaction -
Throws:
IndexTransactionException


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