Mercurial > hg > blitz_condensed
comparison 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 |
comparison
equal
deleted
inserted
replaced
31:243c74d599bf | 32:a77f0a9ed93c |
---|---|
146 synchronized (this) { | 146 synchronized (this) { |
147 output.writeCommand(command, doSync); | 147 output.writeCommand(command, doSync); |
148 } | 148 } |
149 } | 149 } |
150 | 150 |
151 public void flush() throws IOException { | |
152 synchronized(this) { | |
153 output.flush(); | |
154 } | |
155 } | |
156 | |
151 /** | 157 /** |
152 * This method prepares a snapshot of the system and returns it in a | 158 * This method prepares a snapshot of the system and returns it in a |
153 * Snapshotter instance which can be used to save the snapshot to disk | 159 * Snapshotter instance which can be used to save the snapshot to disk |
154 * once dirty state has been sync'd to disk. If your application has no | 160 * once dirty state has been sync'd to disk. If your application has no |
155 * additional state, you can simply invoke on the Snapshotter immediately. | 161 * additional state, you can simply invoke on the Snapshotter immediately. |