public interface PulsarClientImplementationBinding
DefaultImplementation
.<T> SchemaDefinitionBuilder<T> newSchemaDefinitionBuilder()
ClientBuilder newClientBuilder()
MessageId newMessageId(long ledgerId, long entryId, int partitionIndex)
MessageId newMessageIdFromByteArray(byte[] data) throws IOException
IOException
MessageId newMessageIdFromByteArrayWithTopic(byte[] data, String topicName) throws IOException
IOException
Authentication newAuthenticationToken(String token)
Authentication newAuthenticationToken(Supplier<String> supplier)
Authentication newAuthenticationTLS(String certFilePath, String keyFilePath)
Authentication createAuthentication(String authPluginClassName, String authParamsString) throws PulsarClientException.UnsupportedAuthenticationException
Authentication createAuthentication(String authPluginClassName, Map<String,String> authParams) throws PulsarClientException.UnsupportedAuthenticationException
Schema<byte[]> newBytesSchema()
Schema<ByteBuffer> newByteBufferSchema()
Schema<LocalDateTime> newLocalDateTimeSchema()
<T> Schema<T> newAvroSchema(SchemaDefinition schemaDefinition)
<T extends com.google.protobuf.GeneratedMessageV3> Schema<T> newProtobufSchema(SchemaDefinition schemaDefinition)
<T extends com.google.protobuf.GeneratedMessageV3> Schema<T> newProtobufNativeSchema(SchemaDefinition schemaDefinition)
<T> Schema<T> newJSONSchema(SchemaDefinition schemaDefinition)
Schema<GenericRecord> newAutoConsumeSchema()
Schema<byte[]> newAutoProduceSchema()
<K,V> Schema<KeyValue<K,V>> newKeyValueSchema(Schema<K> keySchema, Schema<V> valueSchema)
<K,V> Schema<KeyValue<K,V>> newKeyValueSchema(Schema<K> keySchema, Schema<V> valueSchema, KeyValueEncodingType keyValueEncodingType)
<K,V> Schema<KeyValue<K,V>> newKeyValueSchema(Class<K> key, Class<V> value, SchemaType type)
Schema<?> getSchema(SchemaInfo schemaInfo)
GenericSchema<GenericRecord> getGenericSchema(SchemaInfo schemaInfo)
RecordSchemaBuilder newRecordSchemaBuilder(String name)
KeyValueEncodingType decodeKeyValueEncodingType(SchemaInfo schemaInfo)
schemaInfo
- the schema info<K,V> SchemaInfo encodeKeyValueSchemaInfo(Schema<K> keySchema, Schema<V> valueSchema, KeyValueEncodingType keyValueEncodingType)
keySchema
- the key schemavalueSchema
- the value schemakeyValueEncodingType
- the encoding type to encode and decode key value pair<K,V> SchemaInfo encodeKeyValueSchemaInfo(String schemaName, Schema<K> keySchema, Schema<V> valueSchema, KeyValueEncodingType keyValueEncodingType)
schemaName
- the final schema namekeySchema
- the key schemavalueSchema
- the value schemakeyValueEncodingType
- the encoding type to encode and decode key value pairKeyValue<SchemaInfo,SchemaInfo> decodeKeyValueSchemaInfo(SchemaInfo schemaInfo)
schemaInfo
- key/value schema info.String jsonifySchemaInfo(SchemaInfo schemaInfo)
schemaInfo
- the schema infoString jsonifySchemaInfoWithVersion(SchemaInfoWithVersion schemaInfoWithVersion)
schemaInfoWithVersion
- the schema info with versionString jsonifyKeyValueSchemaInfo(KeyValue<SchemaInfo,SchemaInfo> kvSchemaInfo)
kvSchemaInfo
- the key/value schema infoString convertKeyValueSchemaInfoDataToString(KeyValue<SchemaInfo,SchemaInfo> kvSchemaInfo) throws IOException
kvSchemaInfo
- the key/value schema infoIOException
byte[] convertKeyValueDataStringToSchemaInfoSchema(byte[] keyValueSchemaInfoDataJsonBytes) throws IOException
keyValueSchemaInfoDataJsonBytes
- the key/value schema info data json bytesIOException
BatcherBuilder newDefaultBatcherBuilder()
BatcherBuilder newKeyBasedBatcherBuilder()
MessagePayloadFactory newDefaultMessagePayloadFactory()
static byte[] getBytes(ByteBuffer byteBuffer)
byteBuffer
- SchemaInfo newSchemaInfoImpl(String name, byte[] schema, SchemaType type, Map<String,String> propertiesValue)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.