org.apache.activeio.journal.active
Class BatchedWrite
java.lang.Object
org.apache.activeio.journal.active.BatchedWrite
public final class BatchedWrite
- extends Object
This contains all the data needed to write and force a list of records to a
LogFile. The more records that can be cramed into a single BatchedWrite, the
higher throughput that can be achived by a write and force operation.
- Version:
- $Revision: 1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
error
public Throwable error
BatchedWrite
public BatchedWrite(Packet packet)
- Parameters:
packet
-
append
public boolean append(Record record,
Location recordMark,
boolean force)
- Parameters:
packet2
- mark2
-
- Returns:
waitForForce
public void waitForForce()
throws Throwable
- Throws:
Throwable
forced
public void forced()
writeFailed
public void writeFailed(Throwable error)
getPacket
public Packet getPacket()
getMark
public Location getMark()
- Returns:
flip
public void flip()
throws InterruptedException
- Throws:
InterruptedException
getForce
public boolean getForce()
Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.