]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/TransactionalOptions.java
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under both the GPLv2 (found in the
3 // COPYING file in the root directory) and Apache 2.0 License
4 // (found in the LICENSE.Apache file in the root directory).
9 interface TransactionalOptions
extends AutoCloseable
{
12 * True indicates snapshots will be set, just like if
13 * {@link Transaction#setSnapshot()} had been called
15 * @return whether a snapshot will be set
17 boolean isSetSnapshot();
20 * Setting the setSnapshot to true is the same as calling
21 * {@link Transaction#setSnapshot()}.
25 * @param <T> The type of transactional options.
26 * @param setSnapshot Whether to set a snapshot
28 * @return this TransactionalOptions instance
30 <T
extends TransactionalOptions
> T
setSetSnapshot(final boolean setSnapshot
);