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:
AutoCloseable,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
ConstructorsConstructorDescriptionLocalMemoryMetadataStore(String metadataURL, MetadataStoreConfig metadataStoreConfig) -
Method Summary
Modifier and TypeMethodDescriptionexistsFromStore(String path) getChildrenFromStore(String path) GetMetadataEventSynchronizerto notify and synchronize metadata events.storeDelete(String path, Optional<Long> optExpectedVersion) storePut(String path, byte[] data, Optional<Long> optExpectedVersion, 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, putInternal, receivedNotification, receivedSessionEvent, registerListener, registerSessionListener, registerSyncLister, shouldIgnoreEventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.AutoCloseable
closeMethods inherited from interface org.apache.pulsar.metadata.api.MetadataStore
delete, deleteRecursive, exists, get, getChildren, getDefaultMetadataCacheConfig, getMetadataCache, getMetadataCache, getMetadataCache, getMetadataCache, getMetadataCache, getMetadataCache, put, registerListenerMethods inherited from interface org.apache.pulsar.metadata.api.extended.MetadataStoreExtended
put, registerSessionListener
-
Constructor Details
-
LocalMemoryMetadataStore
public LocalMemoryMetadataStore(String metadataURL, MetadataStoreConfig metadataStoreConfig) throws MetadataStoreException - Throws:
MetadataStoreException
-
-
Method Details
-
storeGet
- Specified by:
storeGetin classAbstractMetadataStore
-
getChildrenFromStore
- Specified by:
getChildrenFromStorein classAbstractMetadataStore
-
existsFromStore
- Specified by:
existsFromStorein classAbstractMetadataStore
-
storePut
public CompletableFuture<Stat> storePut(String path, byte[] data, Optional<Long> optExpectedVersion, EnumSet<CreateOption> options) - Specified by:
storePutin classAbstractMetadataStore
-
storeDelete
- Specified by:
storeDeletein classAbstractMetadataStore
-
getMetadataEventSynchronizer
Description copied from interface:MetadataStoreExtendedGetMetadataEventSynchronizerto notify and synchronize metadata events.- Specified by:
getMetadataEventSynchronizerin interfaceMetadataStoreExtended- Returns:
-