Package io.pravega.schemaregistry.client
Class SchemaRegistryClientFactory
- java.lang.Object
-
- io.pravega.schemaregistry.client.SchemaRegistryClientFactory
-
public class SchemaRegistryClientFactory extends java.lang.ObjectFactory class for creating Schema Registry client.
-
-
Constructor Summary
Constructors Constructor Description SchemaRegistryClientFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SchemaRegistryClientwithDefaultNamespace(SchemaRegistryClientConfig config)Factory method to create Schema Registry Client with default namespace.static SchemaRegistryClientwithNamespace(java.lang.String namespace, SchemaRegistryClientConfig config)Factory method to create Schema Registry Client with namespace.
-
-
-
Method Detail
-
withDefaultNamespace
public static SchemaRegistryClient withDefaultNamespace(SchemaRegistryClientConfig config)
Factory method to create Schema Registry Client with default namespace. This sets the namespace context to use the default namespace (no namespace).- Parameters:
config- Configuration for creating registry client.- Returns:
- SchemaRegistry client implementation
-
withNamespace
public static SchemaRegistryClient withNamespace(java.lang.String namespace, SchemaRegistryClientConfig config)
Factory method to create Schema Registry Client with namespace. This sets the namespace context for all calls to registry service.- Parameters:
config- Configuration for creating registry client.namespace- Namespace- Returns:
- SchemaRegistry client implementation
-
-