org.fusesource.hawtdb.api
Interface TxPageFile


public interface TxPageFile

Implemented by objects to provides transactional access to a page file.

Author:
chirino

Method Summary
 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(java.lang.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.
 Transaction tx()
          Creates a new transaction.
 

Method Detail

tx

Transaction tx()
Creates a new transaction. The transaction object implements the Paged interface so it is what allows you access and mutate the page file data.

Returns:

flush

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.


flush

void flush(java.lang.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. The specified runnable is executed once the flush completes.

Parameters:
onComplete -


Copyright © 2009-2011 FuseSource, Corp.. All Rights Reserved.