org.infinispan.client.rest.RestSchemaClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-client-rest-jakarta Show documentation
Show all versions of infinispan-client-rest-jakarta Show documentation
Infinispan REST Client Jakarta
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);
}