public class RecordingTransaction extends RecordingTransactionBase implements org.apache.fluo.api.client.Transaction
Transaction
that logs all transactions operations (GET, SET, or
DELETE) in a TxLog
that can be used for exportsModifier and Type | Method and Description |
---|---|
void |
close() |
void |
commit() |
static RecordingTransaction |
wrap(org.apache.fluo.api.client.Transaction tx)
Creates a RecordingTransaction by wrapping an existing Transaction
|
static RecordingTransaction |
wrap(org.apache.fluo.api.client.Transaction tx,
Predicate<LogEntry> filter)
Creates a RecordingTransaction using the provided LogEntry filter and existing Transaction
|
delete, get, get, get, get, getStartTimestamp, getTxLog, scanner, set, setWeakNotification, wrap, wrap
delete, set, setWeakNotification
get, get, get, gets, gets, gets, gets, gets, gets, gets
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void commit() throws org.apache.fluo.api.exceptions.CommitException
commit
in interface org.apache.fluo.api.client.Transaction
org.apache.fluo.api.exceptions.CommitException
public void close()
close
in interface AutoCloseable
close
in interface org.apache.fluo.api.client.Transaction
public static RecordingTransaction wrap(org.apache.fluo.api.client.Transaction tx)
public static RecordingTransaction wrap(org.apache.fluo.api.client.Transaction tx, Predicate<LogEntry> filter)
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.