KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > prevayler > implementation > logging > TransactionLogger


1 //Prevayler(TM) - The Free-Software Prevalence Layer.
2
//Copyright (C) 2001-2003 Klaus Wuestefeld
3
//This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
4

5 package org.prevayler.implementation.logging;
6
7 import java.io.IOException JavaDoc;
8 import java.util.Date JavaDoc;
9
10 import org.prevayler.Transaction;
11 import org.prevayler.foundation.Turn;
12 import org.prevayler.implementation.publishing.TransactionSubscriber;
13
14 // START SNIPPET: transactionLogger
15
public interface TransactionLogger {
16
17     public void log(Transaction transaction, Date JavaDoc executionTime, Turn threadSynchronizationTurn);
18
19     public void update(TransactionSubscriber subscriber, long initialTransaction) throws IOException JavaDoc, ClassNotFoundException JavaDoc;
20
21     public void close() throws IOException JavaDoc;
22
23 }
24 // END SNIPPET: transactionLogger
Popular Tags