Package io.micronaut.pulsar.schemas
Interface SchemaResolver
- All Known Implementing Classes:
AvroSchemaResolver
,JsonSchemaResolver
,ProtobufSchemaResolver
public interface SchemaResolver
SchemaResolver represents basic bean that will handle serde operations for a given type. Beans should be named and
each should represent schema which Apache Pulsar should use as transport type. For example JSON is wrapped in AVRO
and Protobuf is natively support but thus 2 SchemaResolvers should exist. To avoid dependency checking default type
names are listed here.
Note: Primitive types are passed down to official Pulsar Java library thus no SchemaResolver names are listed here
for them.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescription<T> org.apache.pulsar.client.api.Schema<T>
forArgument
(Class<T> pojo)
-
Field Details
-
JSON_SCHEMA_NAME
- See Also:
-
PROTOBUF_SCHEMA_NAME
- See Also:
-
AVRO_SCHEMA_NAME
- See Also:
-
-
Method Details
-
forArgument
-