Example #1
0
 @Override
 public void write(Message[] msgLines, int from, int max) throws IOException {
   String[] lines = new String[max];
   for (int i = from; i < max; i++) {
     lines[i] = MessageUtil.toBase64(msgLines[i]);
   }
   wal.write(lines);
 }
Example #2
0
 @Override
 public void write(WeakReference<? extends Message>[] msgLines, int from, int max)
     throws IOException {
   String[] lines = new String[max];
   for (int i = from; i < max; i++) {
     lines[i] = MessageUtil.toBase64(msgLines[i].get());
   }
   wal.write(lines);
 }
Example #3
0
 @Override
 public void write(Message line) throws IOException {
   wal.write(MessageUtil.toBase64(line));
 }