Class SchemasImpl

java.lang.Object
org.apache.pulsar.client.admin.internal.BaseResource
org.apache.pulsar.client.admin.internal.SchemasImpl
All Implemented Interfaces:
org.apache.pulsar.client.admin.Schemas

public class SchemasImpl extends BaseResource implements org.apache.pulsar.client.admin.Schemas
  • 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 org.apache.pulsar.client.admin.PulsarAdminException
      Specified by:
      getSchemaInfo in interface org.apache.pulsar.client.admin.Schemas
      Throws:
      org.apache.pulsar.client.admin.PulsarAdminException
    • getSchemaInfoAsync

      public CompletableFuture<org.apache.pulsar.common.schema.SchemaInfo> getSchemaInfoAsync(String topic)
      Specified by:
      getSchemaInfoAsync in interface org.apache.pulsar.client.admin.Schemas
    • getSchemaInfoWithVersion

      public org.apache.pulsar.common.schema.SchemaInfoWithVersion getSchemaInfoWithVersion(String topic) throws org.apache.pulsar.client.admin.PulsarAdminException
      Specified by:
      getSchemaInfoWithVersion in interface org.apache.pulsar.client.admin.Schemas
      Throws:
      org.apache.pulsar.client.admin.PulsarAdminException
    • getSchemaInfoWithVersionAsync

      public CompletableFuture<org.apache.pulsar.common.schema.SchemaInfoWithVersion> getSchemaInfoWithVersionAsync(String topic)
      Specified by:
      getSchemaInfoWithVersionAsync in interface org.apache.pulsar.client.admin.Schemas
    • getSchemaInfo

      public org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo(String topic, long version) throws org.apache.pulsar.client.admin.PulsarAdminException
      Specified by:
      getSchemaInfo in interface org.apache.pulsar.client.admin.Schemas
      Throws:
      org.apache.pulsar.client.admin.PulsarAdminException
    • getSchemaInfoAsync

      public CompletableFuture<org.apache.pulsar.common.schema.SchemaInfo> getSchemaInfoAsync(String topic, long version)
      Specified by:
      getSchemaInfoAsync in interface org.apache.pulsar.client.admin.Schemas
    • deleteSchema

      public void deleteSchema(String topic) throws org.apache.pulsar.client.admin.PulsarAdminException
      Specified by:
      deleteSchema in interface org.apache.pulsar.client.admin.Schemas
      Throws:
      org.apache.pulsar.client.admin.PulsarAdminException
    • deleteSchemaAsync

      public CompletableFuture<Void> deleteSchemaAsync(String topic)
      Specified by:
      deleteSchemaAsync in interface org.apache.pulsar.client.admin.Schemas
    • deleteSchema

      public void deleteSchema(String topic, boolean force) throws org.apache.pulsar.client.admin.PulsarAdminException
      Specified by:
      deleteSchema in interface org.apache.pulsar.client.admin.Schemas
      Throws:
      org.apache.pulsar.client.admin.PulsarAdminException
    • deleteSchemaAsync

      public CompletableFuture<Void> deleteSchemaAsync(String topic, boolean force)
      Specified by:
      deleteSchemaAsync in interface org.apache.pulsar.client.admin.Schemas
    • createSchema

      public void createSchema(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) throws org.apache.pulsar.client.admin.PulsarAdminException
      Specified by:
      createSchema in interface org.apache.pulsar.client.admin.Schemas
      Throws:
      org.apache.pulsar.client.admin.PulsarAdminException
    • createSchemaAsync

      public CompletableFuture<Void> createSchemaAsync(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
      Specified by:
      createSchemaAsync in interface org.apache.pulsar.client.admin.Schemas
    • createSchema

      public void createSchema(String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload) throws org.apache.pulsar.client.admin.PulsarAdminException
      Specified by:
      createSchema in interface org.apache.pulsar.client.admin.Schemas
      Throws:
      org.apache.pulsar.client.admin.PulsarAdminException
    • createSchemaAsync

      public CompletableFuture<Void> createSchemaAsync(String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload)
      Specified by:
      createSchemaAsync in interface org.apache.pulsar.client.admin.Schemas
    • testCompatibility

      public org.apache.pulsar.common.protocol.schema.IsCompatibilityResponse testCompatibility(String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload) throws org.apache.pulsar.client.admin.PulsarAdminException
      Specified by:
      testCompatibility in interface org.apache.pulsar.client.admin.Schemas
      Throws:
      org.apache.pulsar.client.admin.PulsarAdminException
    • testCompatibilityAsync

      public CompletableFuture<org.apache.pulsar.common.protocol.schema.IsCompatibilityResponse> testCompatibilityAsync(String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload)
      Specified by:
      testCompatibilityAsync in interface org.apache.pulsar.client.admin.Schemas
    • getVersionBySchema

      public Long getVersionBySchema(String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload) throws org.apache.pulsar.client.admin.PulsarAdminException
      Specified by:
      getVersionBySchema in interface org.apache.pulsar.client.admin.Schemas
      Throws:
      org.apache.pulsar.client.admin.PulsarAdminException
    • getVersionBySchemaAsync

      public CompletableFuture<Long> getVersionBySchemaAsync(String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload)
      Specified by:
      getVersionBySchemaAsync in interface org.apache.pulsar.client.admin.Schemas
    • testCompatibility

      public org.apache.pulsar.common.protocol.schema.IsCompatibilityResponse testCompatibility(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) throws org.apache.pulsar.client.admin.PulsarAdminException
      Specified by:
      testCompatibility in interface org.apache.pulsar.client.admin.Schemas
      Throws:
      org.apache.pulsar.client.admin.PulsarAdminException
    • testCompatibilityAsync

      public CompletableFuture<org.apache.pulsar.common.protocol.schema.IsCompatibilityResponse> testCompatibilityAsync(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
      Specified by:
      testCompatibilityAsync in interface org.apache.pulsar.client.admin.Schemas
    • getVersionBySchema

      public Long getVersionBySchema(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo) throws org.apache.pulsar.client.admin.PulsarAdminException
      Specified by:
      getVersionBySchema in interface org.apache.pulsar.client.admin.Schemas
      Throws:
      org.apache.pulsar.client.admin.PulsarAdminException
    • getVersionBySchemaAsync

      public CompletableFuture<Long> getVersionBySchemaAsync(String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
      Specified by:
      getVersionBySchemaAsync in interface org.apache.pulsar.client.admin.Schemas
    • getAllSchemas

      public List<org.apache.pulsar.common.schema.SchemaInfo> getAllSchemas(String topic) throws org.apache.pulsar.client.admin.PulsarAdminException
      Specified by:
      getAllSchemas in interface org.apache.pulsar.client.admin.Schemas
      Throws:
      org.apache.pulsar.client.admin.PulsarAdminException
    • getAllSchemasAsync

      public CompletableFuture<List<org.apache.pulsar.common.schema.SchemaInfo>> getAllSchemasAsync(String topic)
      Specified by:
      getAllSchemasAsync in interface org.apache.pulsar.client.admin.Schemas