diff src/org/prevayler/implementation/PrevaylerCore.java @ 32:a77f0a9ed93c 2.1.1

Add support for optimistic log batching.
author Dan Creswell <dan.creswell@gmail.com>
date Sat, 12 Jun 2010 10:42:31 +0100
parents 4580bb12db30
children
line wrap: on
line diff
--- a/src/org/prevayler/implementation/PrevaylerCore.java	Sat Jun 12 10:41:47 2010 +0100
+++ b/src/org/prevayler/implementation/PrevaylerCore.java	Sat Jun 12 10:42:31 2010 +0100
@@ -148,6 +148,12 @@
         }
     }
 
+    public void flush() throws IOException {
+        synchronized(this) {
+            output.flush();
+        }
+    }
+
     /**
      * This method prepares a snapshot of the system and returns it in a
      * Snapshotter instance which can be used to save the snapshot to disk