public class SchemasImpl extends BaseResource implements Schemas
auth, readTimeoutMs| Constructor and Description |
|---|
SchemasImpl(javax.ws.rs.client.WebTarget web,
org.apache.pulsar.client.api.Authentication auth,
long readTimeoutMs) |
| Modifier and Type | Method and Description |
|---|---|
void |
createSchema(String topic,
PostSchemaPayload payload) |
void |
createSchema(String topic,
org.apache.pulsar.common.schema.SchemaInfo schemaInfo) |
CompletableFuture<Void> |
createSchemaAsync(String topic,
PostSchemaPayload payload) |
CompletableFuture<Void> |
createSchemaAsync(String topic,
org.apache.pulsar.common.schema.SchemaInfo schemaInfo) |
void |
deleteSchema(String topic) |
CompletableFuture<Void> |
deleteSchemaAsync(String topic) |
List<org.apache.pulsar.common.schema.SchemaInfo> |
getAllSchemas(String topic) |
CompletableFuture<List<org.apache.pulsar.common.schema.SchemaInfo>> |
getAllSchemasAsync(String topic) |
org.apache.pulsar.common.schema.SchemaInfo |
getSchemaInfo(String topic) |
org.apache.pulsar.common.schema.SchemaInfo |
getSchemaInfo(String topic,
long version) |
CompletableFuture<org.apache.pulsar.common.schema.SchemaInfo> |
getSchemaInfoAsync(String topic) |
CompletableFuture<org.apache.pulsar.common.schema.SchemaInfo> |
getSchemaInfoAsync(String topic,
long version) |
org.apache.pulsar.common.schema.SchemaInfoWithVersion |
getSchemaInfoWithVersion(String topic) |
CompletableFuture<org.apache.pulsar.common.schema.SchemaInfoWithVersion> |
getSchemaInfoWithVersionAsync(String topic) |
Long |
getVersionBySchema(String topic,
PostSchemaPayload payload) |
Long |
getVersionBySchema(String topic,
org.apache.pulsar.common.schema.SchemaInfo schemaInfo) |
CompletableFuture<Long> |
getVersionBySchemaAsync(String topic,
PostSchemaPayload payload) |
CompletableFuture<Long> |
getVersionBySchemaAsync(String topic,
org.apache.pulsar.common.schema.SchemaInfo schemaInfo) |
IsCompatibilityResponse |
testCompatibility(String topic,
PostSchemaPayload payload) |
IsCompatibilityResponse |
testCompatibility(String topic,
org.apache.pulsar.common.schema.SchemaInfo schemaInfo) |
CompletableFuture<IsCompatibilityResponse> |
testCompatibilityAsync(String topic,
PostSchemaPayload payload) |
CompletableFuture<IsCompatibilityResponse> |
testCompatibilityAsync(String topic,
org.apache.pulsar.common.schema.SchemaInfo schemaInfo) |
asyncDeleteRequest, asyncDeleteRequest, asyncGetRequest, asyncPostRequest, asyncPutRequest, getApiException, getApiException, getReasonFromServer, request, requestAsyncpublic SchemasImpl(javax.ws.rs.client.WebTarget web,
org.apache.pulsar.client.api.Authentication auth,
long readTimeoutMs)
public org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo(String topic) throws PulsarAdminException
getSchemaInfo in interface SchemasPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.common.schema.SchemaInfo> getSchemaInfoAsync(String topic)
getSchemaInfoAsync in interface Schemaspublic org.apache.pulsar.common.schema.SchemaInfoWithVersion getSchemaInfoWithVersion(String topic) throws PulsarAdminException
getSchemaInfoWithVersion in interface SchemasPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.common.schema.SchemaInfoWithVersion> getSchemaInfoWithVersionAsync(String topic)
getSchemaInfoWithVersionAsync in interface Schemaspublic org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo(String topic, long version) throws PulsarAdminException
getSchemaInfo in interface SchemasPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.common.schema.SchemaInfo> getSchemaInfoAsync(String topic, long version)
getSchemaInfoAsync in interface Schemaspublic void deleteSchema(String topic) throws PulsarAdminException
deleteSchema in interface SchemasPulsarAdminExceptionpublic CompletableFuture<Void> deleteSchemaAsync(String topic)
deleteSchemaAsync in interface Schemaspublic void createSchema(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) throws PulsarAdminException
createSchema in interface SchemasPulsarAdminExceptionpublic CompletableFuture<Void> createSchemaAsync(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
createSchemaAsync in interface Schemaspublic void createSchema(String topic, PostSchemaPayload payload) throws PulsarAdminException
createSchema in interface SchemasPulsarAdminExceptionpublic CompletableFuture<Void> createSchemaAsync(String topic, PostSchemaPayload payload)
createSchemaAsync in interface Schemaspublic IsCompatibilityResponse testCompatibility(String topic, PostSchemaPayload payload) throws PulsarAdminException
testCompatibility in interface SchemasPulsarAdminExceptionpublic CompletableFuture<IsCompatibilityResponse> testCompatibilityAsync(String topic, PostSchemaPayload payload)
testCompatibilityAsync in interface Schemaspublic Long getVersionBySchema(String topic, PostSchemaPayload payload) throws PulsarAdminException
getVersionBySchema in interface SchemasPulsarAdminExceptionpublic CompletableFuture<Long> getVersionBySchemaAsync(String topic, PostSchemaPayload payload)
getVersionBySchemaAsync in interface Schemaspublic IsCompatibilityResponse testCompatibility(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) throws PulsarAdminException
testCompatibility in interface SchemasPulsarAdminExceptionpublic CompletableFuture<IsCompatibilityResponse> testCompatibilityAsync(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
testCompatibilityAsync in interface Schemaspublic Long getVersionBySchema(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) throws PulsarAdminException
getVersionBySchema in interface SchemasPulsarAdminExceptionpublic CompletableFuture<Long> getVersionBySchemaAsync(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
getVersionBySchemaAsync in interface Schemaspublic List<org.apache.pulsar.common.schema.SchemaInfo> getAllSchemas(String topic) throws PulsarAdminException
getAllSchemas in interface SchemasPulsarAdminExceptionpublic CompletableFuture<List<org.apache.pulsar.common.schema.SchemaInfo>> getAllSchemasAsync(String topic)
getAllSchemasAsync in interface SchemasCopyright © 2017–2021 Apache Software Foundation. All rights reserved.