Class AbstractBatchedMetadataStore
java.lang.Object
org.apache.pulsar.metadata.impl.AbstractMetadataStore
org.apache.pulsar.metadata.impl.batching.AbstractBatchedMetadataStore
- All Implemented Interfaces:
AutoCloseable,Consumer<Notification>,MetadataStoreExtended,MetadataStore
- Direct Known Subclasses:
EtcdMetadataStore,ZKMetadataStore
-
Field Summary
Fields inherited from class org.apache.pulsar.metadata.impl.AbstractMetadataStore
executor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidbatchOperation(List<MetadataOp> ops) voidclose()protected final CompletableFuture<List<String>>getChildrenFromStore(String path) GetMetadataEventSynchronizerto notify and synchronize metadata events.protected final CompletableFuture<Void>storeDelete(String path, Optional<Long> expectedVersion) final CompletableFuture<Optional<GetResult>>protected CompletableFuture<Stat>storePut(String path, byte[] data, Optional<Long> optExpectedVersion, EnumSet<CreateOption> options) Methods inherited from class org.apache.pulsar.metadata.impl.AbstractMetadataStore
accept, delete, deleteRecursive, execute, exists, existsFromStore, 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 org.apache.pulsar.metadata.api.MetadataStore
getDefaultMetadataCacheConfig, getMetadataCache, getMetadataCache, getMetadataCache
-
Constructor Details
-
AbstractBatchedMetadataStore
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classAbstractMetadataStore- Throws:
Exception
-
storeGet
- Specified by:
storeGetin classAbstractMetadataStore
-
getChildrenFromStore
- Specified by:
getChildrenFromStorein classAbstractMetadataStore
-
storeDelete
- Specified by:
storeDeletein classAbstractMetadataStore
-
storePut
protected CompletableFuture<Stat> storePut(String path, byte[] data, Optional<Long> optExpectedVersion, EnumSet<CreateOption> options) - Specified by:
storePutin classAbstractMetadataStore
-
getMetadataEventSynchronizer
Description copied from interface:MetadataStoreExtendedGetMetadataEventSynchronizerto notify and synchronize metadata events.- Returns:
-
batchOperation
-