Class BookkeeperSchemaStorage
java.lang.Object
org.apache.pulsar.broker.service.schema.BookkeeperSchemaStorage
- All Implemented Interfaces:
org.apache.pulsar.common.protocol.schema.SchemaStorage
public class BookkeeperSchemaStorage
extends Object
implements org.apache.pulsar.common.protocol.schema.SchemaStorage
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExceptionbkException(String operation, int rc, long ledgerId, long entryId) voidclose()CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion>CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion>CompletableFuture<org.apache.pulsar.common.protocol.schema.StoredSchema>CompletableFuture<List<CompletableFuture<org.apache.pulsar.common.protocol.schema.StoredSchema>>>getStoreLedgerIdsBySchemaId(String schemaId) static <T> CompletableFuture<T>ignoreUnrecoverableBKException(CompletableFuture<T> source) CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion>CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion>put(String key, Function<CompletableFuture<List<CompletableFuture<org.apache.pulsar.common.protocol.schema.StoredSchema>>>, CompletableFuture<org.apache.commons.lang3.tuple.Pair<byte[], byte[]>>> fn) voidstart()org.apache.pulsar.common.protocol.schema.SchemaVersionversionFromBytes(byte[] version)
-
Method Details
-
start
- Specified by:
startin interfaceorg.apache.pulsar.common.protocol.schema.SchemaStorage- Throws:
IOException
-
put
public CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion> put(String key, byte[] value, byte[] hash) - Specified by:
putin interfaceorg.apache.pulsar.common.protocol.schema.SchemaStorage
-
put
public CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion> put(String key, Function<CompletableFuture<List<CompletableFuture<org.apache.pulsar.common.protocol.schema.StoredSchema>>>, CompletableFuture<org.apache.commons.lang3.tuple.Pair<byte[], byte[]>>> fn) - Specified by:
putin interfaceorg.apache.pulsar.common.protocol.schema.SchemaStorage
-
get
public CompletableFuture<org.apache.pulsar.common.protocol.schema.StoredSchema> get(String key, org.apache.pulsar.common.protocol.schema.SchemaVersion version) - Specified by:
getin interfaceorg.apache.pulsar.common.protocol.schema.SchemaStorage
-
getAll
public CompletableFuture<List<CompletableFuture<org.apache.pulsar.common.protocol.schema.StoredSchema>>> getAll(String key) - Specified by:
getAllin interfaceorg.apache.pulsar.common.protocol.schema.SchemaStorage
-
getSchemaLedgerList
- Throws:
IOException
-
delete
public CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion> delete(String key, boolean forcefully) - Specified by:
deletein interfaceorg.apache.pulsar.common.protocol.schema.SchemaStorage
-
delete
- Specified by:
deletein interfaceorg.apache.pulsar.common.protocol.schema.SchemaStorage
-
versionFromBytes
public org.apache.pulsar.common.protocol.schema.SchemaVersion versionFromBytes(byte[] version) - Specified by:
versionFromBytesin interfaceorg.apache.pulsar.common.protocol.schema.SchemaStorage
-
close
- Specified by:
closein interfaceorg.apache.pulsar.common.protocol.schema.SchemaStorage- Throws:
Exception
-
getStoreLedgerIdsBySchemaId
-
bkException
-
ignoreUnrecoverableBKException
-