Class RocksDBStore<K,V>
java.lang.Object
org.infinispan.persistence.rocksdb.RocksDBStore<K,V>
- All Implemented Interfaces:
org.infinispan.persistence.spi.NonBlockingStore<K,V>
public class RocksDBStore<K,V>
extends Object
implements org.infinispan.persistence.spi.NonBlockingStore<K,V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.persistence.spi.NonBlockingStore
org.infinispan.persistence.spi.NonBlockingStore.Characteristic, org.infinispan.persistence.spi.NonBlockingStore.SegmentedPublisher<Type> -
Field Summary
FieldsFields inherited from interface org.infinispan.persistence.spi.NonBlockingStore
SIZE_UNAVAILABLE_FUTURE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSegments(org.infinispan.commons.util.IntSet segments) approximateSize(org.infinispan.commons.util.IntSet segments) batch(int publisherCount, org.reactivestreams.Publisher<org.infinispan.persistence.spi.NonBlockingStore.SegmentedPublisher<Object>> removePublisher, org.reactivestreams.Publisher<org.infinispan.persistence.spi.NonBlockingStore.SegmentedPublisher<org.infinispan.persistence.spi.MarshallableEntry<K, V>>> writePublisher) Set<org.infinispan.persistence.spi.NonBlockingStore.Characteristic> clear()containsKey(int segment, Object key) protected org.rocksdb.DBOptionsprotected org.rocksdb.OptionsCompletionStage<org.infinispan.persistence.spi.MarshallableEntry<K, V>> protected static org.rocksdb.RocksDBopenDatabase(Path location, org.rocksdb.Options options) Creates database if it doesn't exist.publishEntries(org.infinispan.commons.util.IntSet segments, Predicate<? super K> filter, boolean includeValues) org.reactivestreams.Publisher<K> publishKeys(org.infinispan.commons.util.IntSet segments, Predicate<? super K> filter) removeSegments(org.infinispan.commons.util.IntSet segments) size(org.infinispan.commons.util.IntSet segments) start(org.infinispan.persistence.spi.InitializationContext ctx) stop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.persistence.spi.NonBlockingStore
commit, destroy, ignoreCommandWithFlags, prepareWithModifications, rollback
-
Field Details
-
configuration
-
-
Constructor Details
-
RocksDBStore
public RocksDBStore()
-
-
Method Details
-
start
-
dataDbOptions
protected org.rocksdb.DBOptions dataDbOptions() -
expiredDbOptions
protected org.rocksdb.Options expiredDbOptions() -
openDatabase
protected static org.rocksdb.RocksDB openDatabase(Path location, org.rocksdb.Options options) throws org.rocksdb.RocksDBException Creates database if it doesn't exist.- Throws:
org.rocksdb.RocksDBException
-
stop
-
characteristics
-
isAvailable
-
clear
-
size
-
approximateSize
-
containsKey
-
publishKeys
-
publishEntries
-
delete
-
write
public CompletionStage<Void> write(int segment, org.infinispan.persistence.spi.MarshallableEntry<? extends K, ? extends V> entry) -
load
public CompletionStage<org.infinispan.persistence.spi.MarshallableEntry<K,V>> load(int segment, Object key) -
batch
public CompletionStage<Void> batch(int publisherCount, org.reactivestreams.Publisher<org.infinispan.persistence.spi.NonBlockingStore.SegmentedPublisher<Object>> removePublisher, org.reactivestreams.Publisher<org.infinispan.persistence.spi.NonBlockingStore.SegmentedPublisher<org.infinispan.persistence.spi.MarshallableEntry<K, V>>> writePublisher) -
purgeExpired
-
addSegments
-
removeSegments
-