All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.client.rest.RestSchemaClient Maven / Gradle / Ivy

There is a newer version: 14.0.33.Final
Show newest version
package org.infinispan.client.rest;

import java.util.concurrent.CompletionStage;

/**
 * Operations for protobuf schema handling.
 *
 * @since 11.0
 **/
public interface RestSchemaClient {

   /**
    * Obtains the names of the registered schemas.
    */
   CompletionStage names();

   /**
    * Obtains the names of the types.
    */
   CompletionStage types();

   /**
    * POST a schema with the supplied name and contents.
    */
   CompletionStage post(String schemaName, String schemaContents);

   /**
    * POST a schema with the supplied name and contents.
    */
   CompletionStage post(String schemaName, RestEntity schemaContents);

   /**
    * PUT a schema with the supplied name and contents.
    */
   CompletionStage put(String schemaName, String schemaContents);

   /**
    * PUT a schema with the supplied name and contents.
    */
   CompletionStage put(String schemaName, RestEntity schemaContents);

   /**
    * DELETE a schema by name.
    */
   CompletionStage delete(String schemaName);

   /**
    * GET a schema by name.
    */
   CompletionStage get(String schemaName);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy