com.go.trove.util.tq
Interface Transaction


public interface Transaction

Defines a unit of work to be performed in a TransactionQueue.

Version:
8 , 9/25/00
Author:
Brian S O'Neill

Method Summary
 void cancel()
          Called by TransactionQueue to cancel this transaction if an exception is thrown from the service method or if this transaction was in the queue too long and expired.
 void service()
          Called by TransactionQueue to service this transaction.
 

Method Detail

service

public void service()
             throws java.lang.Exception
Called by TransactionQueue to service this transaction.

cancel

public void cancel()
            throws java.lang.Exception
Called by TransactionQueue to cancel this transaction if an exception is thrown from the service method or if this transaction was in the queue too long and expired.
See Also:
TransactionQueueListener.transactionException(com.go.trove.util.tq.TransactionQueueEvent)