Class AbstractBatchedMetadataStore
- java.lang.Object
-
- org.apache.pulsar.metadata.impl.AbstractMetadataStore
-
- org.apache.pulsar.metadata.impl.batching.AbstractBatchedMetadataStore
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.util.function.Consumer<Notification>,MetadataStoreExtended,MetadataStore
- Direct Known Subclasses:
EtcdMetadataStore,ZKMetadataStore
public abstract class AbstractBatchedMetadataStore extends AbstractMetadataStore
-
-
Field Summary
-
Fields inherited from class org.apache.pulsar.metadata.impl.AbstractMetadataStore
executor
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBatchedMetadataStore(MetadataStoreConfig conf)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidbatchOperation(java.util.List<MetadataOp> ops)voidclose()protected java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>>getChildrenFromStore(java.lang.String path)protected java.util.concurrent.CompletableFuture<java.lang.Void>storeDelete(java.lang.String path, java.util.Optional<java.lang.Long> expectedVersion)java.util.concurrent.CompletableFuture<java.util.Optional<GetResult>>storeGet(java.lang.String path)protected 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, delete, deleteRecursive, execute, exists, existsFromStore, 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
getDefaultMetadataCacheConfig, getMetadataCache, getMetadataCache, getMetadataCache
-
-
-
-
Constructor Detail
-
AbstractBatchedMetadataStore
protected AbstractBatchedMetadataStore(MetadataStoreConfig conf)
-
-
Method Detail
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Overrides:
closein classAbstractMetadataStore- Throws:
java.lang.Exception
-
storeGet
public final java.util.concurrent.CompletableFuture<java.util.Optional<GetResult>> storeGet(java.lang.String path)
- Specified by:
storeGetin classAbstractMetadataStore
-
getChildrenFromStore
protected final java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>> getChildrenFromStore(java.lang.String path)
- Specified by:
getChildrenFromStorein classAbstractMetadataStore
-
storeDelete
protected final java.util.concurrent.CompletableFuture<java.lang.Void> storeDelete(java.lang.String path, java.util.Optional<java.lang.Long> expectedVersion)- Specified by:
storeDeletein classAbstractMetadataStore
-
storePut
protected 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
-
batchOperation
protected abstract void batchOperation(java.util.List<MetadataOp> ops)
-
-