public final class HawtTxPageFile extends Object implements TxPageFile
Modifier and Type | Field and Description |
---|---|
static int |
FILE_HEADER_SIZE |
static byte[] |
MAGIC |
Constructor and Description |
---|
HawtTxPageFile(TxPageFileFactory factory,
HawtPageFile pageFile) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush()
Once this method returns, any previously committed transactions
are flushed and to the disk, ensuring that they will not be lost
upon failure.
|
void |
flush(Runnable onComplete)
If the transaction page file is configured to use a worker thread,
then this method performs a non-blocking flush otherwise this
method blocks until the flush is completed.
|
void |
performBatches()
Attempts to perform a batch state change: stored -> performed
Once a batch is performed, new snapshots will not reference
the batch anymore.
|
ReadCache |
readCache() |
void |
recover()
Loads an existing file and replays the batch
logs to put it in a consistent state.
|
void |
reset()
Used to initialize a new file or to clear out the
contents of an existing file.
|
String |
toString() |
Transaction |
tx()
Creates a new transaction.
|
public static final int FILE_HEADER_SIZE
public static final byte[] MAGIC
public HawtTxPageFile(TxPageFileFactory factory, HawtPageFile pageFile)
public ReadCache readCache()
public void close()
public Transaction tx()
TxPageFile
Paged
interface
so it is what allows you access and mutate the page file data.tx
in interface TxPageFile
public void reset()
public void recover()
public void flush()
TxPageFile
flush
in interface TxPageFile
public void flush(Runnable onComplete)
TxPageFile
flush
in interface TxPageFile
public void performBatches()
Copyright © 2009–2016 FuseSource, Corp.. All rights reserved.