]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/TransactionalOptions.java
update sources to ceph Nautilus 14.2.1
[ceph.git] / 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).
5
6 package org.rocksdb;
7
8
9 interface TransactionalOptions extends AutoCloseable {
10
11 /**
12 * True indicates snapshots will be set, just like if
13 * {@link Transaction#setSnapshot()} had been called
14 *
15 * @return whether a snapshot will be set
16 */
17 boolean isSetSnapshot();
18
19 /**
20 * Setting the setSnapshot to true is the same as calling
21 * {@link Transaction#setSnapshot()}.
22 *
23 * Default: false
24 *
25 * @param <T> The type of transactional options.
26 * @param setSnapshot Whether to set a snapshot
27 *
28 * @return this TransactionalOptions instance
29 */
30 <T extends TransactionalOptions> T setSetSnapshot(final boolean setSnapshot);
31 }