Mercurial > hg > blitz_condensed
comparison src/org/prevayler/implementation/CommandOutputStream.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 | 3dc0c5604566 |
children |
comparison
equal
deleted
inserted
replaced
31:243c74d599bf | 32:a77f0a9ed93c |
---|---|
86 closeLogStream(); | 86 closeLogStream(); |
87 throw iox; | 87 throw iox; |
88 } | 88 } |
89 } | 89 } |
90 | 90 |
91 public void flush() throws IOException { | |
92 ObjectOutputStream oos = logStream(); | |
93 oos.flush(); | |
94 } | |
95 | |
91 public void writeCommand(Command command, boolean doSync) | 96 public void writeCommand(Command command, boolean doSync) |
92 throws IOException{ | 97 throws IOException{ |
93 | 98 |
94 ObjectOutputStream oos = logStream(); | 99 ObjectOutputStream oos = logStream(); |
95 try { | 100 try { |