Package org.apache.fluo.api.client
Interface Transaction
-
- All Superinterfaces:
AutoCloseable
,SnapshotBase
,TransactionBase
public interface Transaction extends TransactionBase, AutoCloseable
Enables users to read and write to Fluo at a certain point in time. Transaction extendsTransactionBase
to include thecommit()
andclose()
methods as users are responsible for committing and closing resources when using Transaction.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes resourcesvoid
commit()
Commits the transaction.-
Methods inherited from interface org.apache.fluo.api.client.SnapshotBase
get, get, get, get, get, get, get, getAsync, getAsync, gets, gets, gets, gets, gets, gets, gets, getsAsync, getsAsync, getScanTimeAuthorizations, getStartTimestamp, scanner, setScanTimeAuthorizations
-
Methods inherited from interface org.apache.fluo.api.client.TransactionBase
delete, delete, set, set, setWeakNotification, setWeakNotification, withReadLock
-
-
-
-
Method Detail
-
commit
void commit() throws CommitException
Commits the transaction. ACommitException
will be thrown if the commit failed.- Throws:
CommitException
-
close
void close()
Closes resources- Specified by:
close
in interfaceAutoCloseable
-
-