Package org.apache.pulsar.metadata.impl
Class LocalMemoryMetadataStore
- java.lang.Object
-
- org.apache.pulsar.metadata.impl.AbstractMetadataStore
-
- org.apache.pulsar.metadata.impl.LocalMemoryMetadataStore
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.util.function.Consumer<Notification>,MetadataStoreExtended,MetadataStore
public class LocalMemoryMetadataStore extends AbstractMetadataStore implements MetadataStoreExtended
-
-
Field Summary
-
Fields inherited from class org.apache.pulsar.metadata.impl.AbstractMetadataStore
executor
-
-
Constructor Summary
Constructors Constructor Description LocalMemoryMetadataStore(java.lang.String metadataURL, MetadataStoreConfig metadataStoreConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Boolean>existsFromStore(java.lang.String path)java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>>getChildrenFromStore(java.lang.String path)java.util.concurrent.CompletableFuture<java.lang.Void>storeDelete(java.lang.String path, java.util.Optional<java.lang.Long> optExpectedVersion)java.util.concurrent.CompletableFuture<java.util.Optional<GetResult>>storeGet(java.lang.String path)java.util.concurrent.CompletableFuture<Stat>storePut(java.lang.String path, byte[] data, java.util.Optional<java.lang.Long> optExpectedVersion, java.util.EnumSet<CreateOption> options)-
Methods inherited from class org.apache.pulsar.metadata.impl.AbstractMetadataStore
accept, close, delete, deleteRecursive, execute, exists, get, getChildren, getMetadataCache, getMetadataCache, getMetadataCache, invalidateAll, notifyParentChildrenChanged, parent, put, put, receivedNotification, receivedSessionEvent, registerListener, registerSessionListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pulsar.metadata.api.MetadataStore
delete, deleteRecursive, exists, get, getChildren, getDefaultMetadataCacheConfig, getMetadataCache, getMetadataCache, getMetadataCache, getMetadataCache, getMetadataCache, getMetadataCache, put, registerListener
-
Methods inherited from interface org.apache.pulsar.metadata.api.extended.MetadataStoreExtended
put, registerSessionListener
-
-
-
-
Constructor Detail
-
LocalMemoryMetadataStore
public LocalMemoryMetadataStore(java.lang.String metadataURL, MetadataStoreConfig metadataStoreConfig) throws MetadataStoreException- Throws:
MetadataStoreException
-
-
Method Detail
-
storeGet
public java.util.concurrent.CompletableFuture<java.util.Optional<GetResult>> storeGet(java.lang.String path)
- Specified by:
storeGetin classAbstractMetadataStore
-
getChildrenFromStore
public java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>> getChildrenFromStore(java.lang.String path)
- Specified by:
getChildrenFromStorein classAbstractMetadataStore
-
existsFromStore
public java.util.concurrent.CompletableFuture<java.lang.Boolean> existsFromStore(java.lang.String path)
- Specified by:
existsFromStorein classAbstractMetadataStore
-
storePut
public java.util.concurrent.CompletableFuture<Stat> storePut(java.lang.String path, byte[] data, java.util.Optional<java.lang.Long> optExpectedVersion, java.util.EnumSet<CreateOption> options)
- Specified by:
storePutin classAbstractMetadataStore
-
storeDelete
public java.util.concurrent.CompletableFuture<java.lang.Void> storeDelete(java.lang.String path, java.util.Optional<java.lang.Long> optExpectedVersion)- Specified by:
storeDeletein classAbstractMetadataStore
-
-