Class SchemasImpl
java.lang.Object
org.apache.pulsar.client.admin.internal.BaseResource
org.apache.pulsar.client.admin.internal.SchemasImpl
- All Implemented Interfaces:
Schemas
-
Field Summary
Fields inherited from class org.apache.pulsar.client.admin.internal.BaseResource
auth, readTimeoutMs -
Constructor Summary
ConstructorsConstructorDescriptionSchemasImpl(javax.ws.rs.client.WebTarget web, org.apache.pulsar.client.api.Authentication auth, long readTimeoutMs) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateSchema(String topic, PostSchemaPayload payload) voidcreateSchema(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) createSchemaAsync(String topic, PostSchemaPayload payload) createSchemaAsync(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) voiddeleteSchema(String topic) voiddeleteSchema(String topic, boolean force) deleteSchemaAsync(String topic) deleteSchemaAsync(String topic, boolean force) 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.SchemaInfogetSchemaInfo(String topic) org.apache.pulsar.common.schema.SchemaInfogetSchemaInfo(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.SchemaInfoWithVersiongetSchemaInfoWithVersion(String topic) CompletableFuture<org.apache.pulsar.common.schema.SchemaInfoWithVersion>getVersionBySchema(String topic, PostSchemaPayload payload) getVersionBySchema(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) getVersionBySchemaAsync(String topic, PostSchemaPayload payload) getVersionBySchemaAsync(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) testCompatibility(String topic, PostSchemaPayload payload) testCompatibility(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) testCompatibilityAsync(String topic, PostSchemaPayload payload) testCompatibilityAsync(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) Methods inherited from class org.apache.pulsar.client.admin.internal.BaseResource
asyncDeleteRequest, asyncDeleteRequest, asyncGetRequest, asyncGetRequest, asyncGetRequest, asyncGetRequest, asyncPostRequest, asyncPostRequestWithResponse, asyncPutRequest, getApiException, getApiException, getReasonFromServer, request, requestAsync, sync
-
Constructor Details
-
SchemasImpl
public SchemasImpl(javax.ws.rs.client.WebTarget web, org.apache.pulsar.client.api.Authentication auth, long readTimeoutMs)
-
-
Method Details
-
getSchemaInfo
public org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo(String topic) throws PulsarAdminException - Specified by:
getSchemaInfoin interfaceSchemas- Throws:
PulsarAdminException
-
getSchemaInfoAsync
public CompletableFuture<org.apache.pulsar.common.schema.SchemaInfo> getSchemaInfoAsync(String topic) - Specified by:
getSchemaInfoAsyncin interfaceSchemas
-
getSchemaInfoWithVersion
public org.apache.pulsar.common.schema.SchemaInfoWithVersion getSchemaInfoWithVersion(String topic) throws PulsarAdminException - Specified by:
getSchemaInfoWithVersionin interfaceSchemas- Throws:
PulsarAdminException
-
getSchemaInfoWithVersionAsync
public CompletableFuture<org.apache.pulsar.common.schema.SchemaInfoWithVersion> getSchemaInfoWithVersionAsync(String topic) - Specified by:
getSchemaInfoWithVersionAsyncin interfaceSchemas
-
getSchemaInfo
public org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo(String topic, long version) throws PulsarAdminException - Specified by:
getSchemaInfoin interfaceSchemas- Throws:
PulsarAdminException
-
getSchemaInfoAsync
public CompletableFuture<org.apache.pulsar.common.schema.SchemaInfo> getSchemaInfoAsync(String topic, long version) - Specified by:
getSchemaInfoAsyncin interfaceSchemas
-
deleteSchema
- Specified by:
deleteSchemain interfaceSchemas- Throws:
PulsarAdminException
-
deleteSchemaAsync
- Specified by:
deleteSchemaAsyncin interfaceSchemas
-
deleteSchema
- Specified by:
deleteSchemain interfaceSchemas- Throws:
PulsarAdminException
-
deleteSchemaAsync
- Specified by:
deleteSchemaAsyncin interfaceSchemas
-
createSchema
public void createSchema(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) throws PulsarAdminException - Specified by:
createSchemain interfaceSchemas- Throws:
PulsarAdminException
-
createSchemaAsync
public CompletableFuture<Void> createSchemaAsync(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) - Specified by:
createSchemaAsyncin interfaceSchemas
-
createSchema
- Specified by:
createSchemain interfaceSchemas- Throws:
PulsarAdminException
-
createSchemaAsync
- Specified by:
createSchemaAsyncin interfaceSchemas
-
testCompatibility
public IsCompatibilityResponse testCompatibility(String topic, PostSchemaPayload payload) throws PulsarAdminException - Specified by:
testCompatibilityin interfaceSchemas- Throws:
PulsarAdminException
-
testCompatibilityAsync
public CompletableFuture<IsCompatibilityResponse> testCompatibilityAsync(String topic, PostSchemaPayload payload) - Specified by:
testCompatibilityAsyncin interfaceSchemas
-
getVersionBySchema
- Specified by:
getVersionBySchemain interfaceSchemas- Throws:
PulsarAdminException
-
getVersionBySchemaAsync
- Specified by:
getVersionBySchemaAsyncin interfaceSchemas
-
testCompatibility
public IsCompatibilityResponse testCompatibility(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) throws PulsarAdminException - Specified by:
testCompatibilityin interfaceSchemas- Throws:
PulsarAdminException
-
testCompatibilityAsync
public CompletableFuture<IsCompatibilityResponse> testCompatibilityAsync(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) - Specified by:
testCompatibilityAsyncin interfaceSchemas
-
getVersionBySchema
public Long getVersionBySchema(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) throws PulsarAdminException - Specified by:
getVersionBySchemain interfaceSchemas- Throws:
PulsarAdminException
-
getVersionBySchemaAsync
public CompletableFuture<Long> getVersionBySchemaAsync(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) - Specified by:
getVersionBySchemaAsyncin interfaceSchemas
-
getAllSchemas
public List<org.apache.pulsar.common.schema.SchemaInfo> getAllSchemas(String topic) throws PulsarAdminException - Specified by:
getAllSchemasin interfaceSchemas- Throws:
PulsarAdminException
-
getAllSchemasAsync
public CompletableFuture<List<org.apache.pulsar.common.schema.SchemaInfo>> getAllSchemasAsync(String topic) - Specified by:
getAllSchemasAsyncin interfaceSchemas
-