Class SchemasImpl

  • All Implemented Interfaces:
    org.apache.pulsar.client.admin.Schemas

    public class SchemasImpl
    extends BaseResource
    implements org.apache.pulsar.client.admin.Schemas
    • Constructor Summary

      Constructors 
      Constructor Description
      SchemasImpl​(javax.ws.rs.client.WebTarget web, org.apache.pulsar.client.api.Authentication auth, long readTimeoutMs)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createSchema​(java.lang.String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload)  
      void createSchema​(java.lang.String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo)  
      java.util.concurrent.CompletableFuture<java.lang.Void> createSchemaAsync​(java.lang.String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload)  
      java.util.concurrent.CompletableFuture<java.lang.Void> createSchemaAsync​(java.lang.String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo)  
      void deleteSchema​(java.lang.String topic)  
      java.util.concurrent.CompletableFuture<java.lang.Void> deleteSchemaAsync​(java.lang.String topic)  
      java.util.List<org.apache.pulsar.common.schema.SchemaInfo> getAllSchemas​(java.lang.String topic)  
      java.util.concurrent.CompletableFuture<java.util.List<org.apache.pulsar.common.schema.SchemaInfo>> getAllSchemasAsync​(java.lang.String topic)  
      org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo​(java.lang.String topic)  
      org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo​(java.lang.String topic, long version)  
      java.util.concurrent.CompletableFuture<org.apache.pulsar.common.schema.SchemaInfo> getSchemaInfoAsync​(java.lang.String topic)  
      java.util.concurrent.CompletableFuture<org.apache.pulsar.common.schema.SchemaInfo> getSchemaInfoAsync​(java.lang.String topic, long version)  
      org.apache.pulsar.common.schema.SchemaInfoWithVersion getSchemaInfoWithVersion​(java.lang.String topic)  
      java.util.concurrent.CompletableFuture<org.apache.pulsar.common.schema.SchemaInfoWithVersion> getSchemaInfoWithVersionAsync​(java.lang.String topic)  
      java.lang.Long getVersionBySchema​(java.lang.String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload)  
      java.lang.Long getVersionBySchema​(java.lang.String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo)  
      java.util.concurrent.CompletableFuture<java.lang.Long> getVersionBySchemaAsync​(java.lang.String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload)  
      java.util.concurrent.CompletableFuture<java.lang.Long> getVersionBySchemaAsync​(java.lang.String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo)  
      org.apache.pulsar.common.protocol.schema.IsCompatibilityResponse testCompatibility​(java.lang.String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload)  
      org.apache.pulsar.common.protocol.schema.IsCompatibilityResponse testCompatibility​(java.lang.String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo)  
      java.util.concurrent.CompletableFuture<org.apache.pulsar.common.protocol.schema.IsCompatibilityResponse> testCompatibilityAsync​(java.lang.String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload)  
      java.util.concurrent.CompletableFuture<org.apache.pulsar.common.protocol.schema.IsCompatibilityResponse> testCompatibilityAsync​(java.lang.String topic, org.apache.pulsar.common.schema.SchemaInfo schemaInfo)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SchemasImpl

        public SchemasImpl​(javax.ws.rs.client.WebTarget web,
                           org.apache.pulsar.client.api.Authentication auth,
                           long readTimeoutMs)
    • Method Detail

      • getSchemaInfo

        public org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo​(java.lang.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 java.util.concurrent.CompletableFuture<org.apache.pulsar.common.schema.SchemaInfo> getSchemaInfoAsync​(java.lang.String topic)
        Specified by:
        getSchemaInfoAsync in interface org.apache.pulsar.client.admin.Schemas
      • getSchemaInfoWithVersion

        public org.apache.pulsar.common.schema.SchemaInfoWithVersion getSchemaInfoWithVersion​(java.lang.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 java.util.concurrent.CompletableFuture<org.apache.pulsar.common.schema.SchemaInfoWithVersion> getSchemaInfoWithVersionAsync​(java.lang.String topic)
        Specified by:
        getSchemaInfoWithVersionAsync in interface org.apache.pulsar.client.admin.Schemas
      • getSchemaInfo

        public org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo​(java.lang.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 java.util.concurrent.CompletableFuture<org.apache.pulsar.common.schema.SchemaInfo> getSchemaInfoAsync​(java.lang.String topic,
                                                                                                                     long version)
        Specified by:
        getSchemaInfoAsync in interface org.apache.pulsar.client.admin.Schemas
      • deleteSchema

        public void deleteSchema​(java.lang.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 java.util.concurrent.CompletableFuture<java.lang.Void> deleteSchemaAsync​(java.lang.String topic)
        Specified by:
        deleteSchemaAsync in interface org.apache.pulsar.client.admin.Schemas
      • createSchema

        public void createSchema​(java.lang.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 java.util.concurrent.CompletableFuture<java.lang.Void> createSchemaAsync​(java.lang.String topic,
                                                                                        org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
        Specified by:
        createSchemaAsync in interface org.apache.pulsar.client.admin.Schemas
      • createSchema

        public void createSchema​(java.lang.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 java.util.concurrent.CompletableFuture<java.lang.Void> createSchemaAsync​(java.lang.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​(java.lang.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 java.util.concurrent.CompletableFuture<org.apache.pulsar.common.protocol.schema.IsCompatibilityResponse> testCompatibilityAsync​(java.lang.String topic,
                                                                                                                                               org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload)
        Specified by:
        testCompatibilityAsync in interface org.apache.pulsar.client.admin.Schemas
      • getVersionBySchema

        public java.lang.Long getVersionBySchema​(java.lang.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 java.util.concurrent.CompletableFuture<java.lang.Long> getVersionBySchemaAsync​(java.lang.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​(java.lang.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 java.util.concurrent.CompletableFuture<org.apache.pulsar.common.protocol.schema.IsCompatibilityResponse> testCompatibilityAsync​(java.lang.String topic,
                                                                                                                                               org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
        Specified by:
        testCompatibilityAsync in interface org.apache.pulsar.client.admin.Schemas
      • getVersionBySchema

        public java.lang.Long getVersionBySchema​(java.lang.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 java.util.concurrent.CompletableFuture<java.lang.Long> getVersionBySchemaAsync​(java.lang.String topic,
                                                                                              org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
        Specified by:
        getVersionBySchemaAsync in interface org.apache.pulsar.client.admin.Schemas
      • getAllSchemas

        public java.util.List<org.apache.pulsar.common.schema.SchemaInfo> getAllSchemas​(java.lang.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 java.util.concurrent.CompletableFuture<java.util.List<org.apache.pulsar.common.schema.SchemaInfo>> getAllSchemasAsync​(java.lang.String topic)
        Specified by:
        getAllSchemasAsync in interface org.apache.pulsar.client.admin.Schemas