org.openanzo.model.transaction
Interface ITransactionQueueHandler


public interface ITransactionQueueHandler

The ITransactionQueueListener gets events when operations occur on the ITransactionQueue.

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Method Summary
 void transactionAddedToQueue(ITransaction transaction)
          Notified when a transaction was added to the queue.
 void transactionAddedToQueueFailed(ITransaction transaction, java.lang.Exception exception)
          Notified when a transaction was not added to queue because of an exception.
 void transactionQueueCleared()
          Notified when the transaction queue was cleared of all transactions.
 void transactionQueueCommited(ITransaction transaction, boolean commitSuccess, java.util.List<AnzoException> errors)
          Notified when a set of transactions were successfully committed on the server.
 

Method Detail

transactionAddedToQueue

void transactionAddedToQueue(ITransaction transaction)
                             throws AnzoException
Notified when a transaction was added to the queue.

Parameters:
transaction - that was added to queue
Throws:
AnzoException - if there was an error processing event

transactionQueueCommited

void transactionQueueCommited(ITransaction transaction,
                              boolean commitSuccess,
                              java.util.List<AnzoException> errors)
                              throws AnzoException
Notified when a set of transactions were successfully committed on the server.

Parameters:
transaction - that was committed
commitSuccess - whether this transaction committed successfully
errors - List of errors if transaction failed to commit successfully
Throws:
AnzoException - if there was an error processing event

transactionQueueCleared

void transactionQueueCleared()
                             throws AnzoException
Notified when the transaction queue was cleared of all transactions.

Throws:
AnzoException - if there was an error processing event

transactionAddedToQueueFailed

void transactionAddedToQueueFailed(ITransaction transaction,
                                   java.lang.Exception exception)
                                   throws AnzoException
Notified when a transaction was not added to queue because of an exception.

Parameters:
transaction - that failed to be added
exception - Cause for the failure
Throws:
AnzoException - if there was an error processing event


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.