public final class PulsarClientImplementationBindingImpl extends Object implements PulsarClientImplementationBinding
| Constructor and Description |
|---|
PulsarClientImplementationBindingImpl() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBytespublic PulsarClientImplementationBindingImpl()
public <T> SchemaDefinitionBuilder<T> newSchemaDefinitionBuilder()
newSchemaDefinitionBuilder in interface PulsarClientImplementationBindingpublic ClientBuilder newClientBuilder()
newClientBuilder in interface PulsarClientImplementationBindingpublic MessageId newMessageId(long ledgerId, long entryId, int partitionIndex)
newMessageId in interface PulsarClientImplementationBindingpublic MessageId newMessageIdFromByteArray(byte[] data) throws IOException
newMessageIdFromByteArray in interface PulsarClientImplementationBindingIOExceptionpublic MessageId newMessageIdFromByteArrayWithTopic(byte[] data, String topicName) throws IOException
newMessageIdFromByteArrayWithTopic in interface PulsarClientImplementationBindingIOExceptionpublic Authentication newAuthenticationToken(String token)
newAuthenticationToken in interface PulsarClientImplementationBindingpublic Authentication newAuthenticationToken(Supplier<String> supplier)
newAuthenticationToken in interface PulsarClientImplementationBindingpublic Authentication newAuthenticationTLS(String certFilePath, String keyFilePath)
newAuthenticationTLS in interface PulsarClientImplementationBindingpublic Authentication createAuthentication(String authPluginClassName, String authParamsString) throws PulsarClientException.UnsupportedAuthenticationException
createAuthentication in interface PulsarClientImplementationBindingPulsarClientException.UnsupportedAuthenticationExceptionpublic Authentication createAuthentication(String authPluginClassName, Map<String,String> authParams) throws PulsarClientException.UnsupportedAuthenticationException
createAuthentication in interface PulsarClientImplementationBindingPulsarClientException.UnsupportedAuthenticationExceptionpublic Schema<byte[]> newBytesSchema()
newBytesSchema in interface PulsarClientImplementationBindingpublic Schema<String> newStringSchema()
newStringSchema in interface PulsarClientImplementationBindingpublic Schema<String> newStringSchema(Charset charset)
newStringSchema in interface PulsarClientImplementationBindingpublic Schema<Byte> newByteSchema()
newByteSchema in interface PulsarClientImplementationBindingpublic Schema<Short> newShortSchema()
newShortSchema in interface PulsarClientImplementationBindingpublic Schema<Integer> newIntSchema()
newIntSchema in interface PulsarClientImplementationBindingpublic Schema<Long> newLongSchema()
newLongSchema in interface PulsarClientImplementationBindingpublic Schema<Boolean> newBooleanSchema()
newBooleanSchema in interface PulsarClientImplementationBindingpublic Schema<ByteBuffer> newByteBufferSchema()
newByteBufferSchema in interface PulsarClientImplementationBindingpublic Schema<Float> newFloatSchema()
newFloatSchema in interface PulsarClientImplementationBindingpublic Schema<Double> newDoubleSchema()
newDoubleSchema in interface PulsarClientImplementationBindingpublic Schema<Date> newDateSchema()
newDateSchema in interface PulsarClientImplementationBindingpublic Schema<Time> newTimeSchema()
newTimeSchema in interface PulsarClientImplementationBindingpublic Schema<Timestamp> newTimestampSchema()
newTimestampSchema in interface PulsarClientImplementationBindingpublic Schema<Instant> newInstantSchema()
newInstantSchema in interface PulsarClientImplementationBindingpublic Schema<LocalDate> newLocalDateSchema()
newLocalDateSchema in interface PulsarClientImplementationBindingpublic Schema<LocalTime> newLocalTimeSchema()
newLocalTimeSchema in interface PulsarClientImplementationBindingpublic Schema<LocalDateTime> newLocalDateTimeSchema()
newLocalDateTimeSchema in interface PulsarClientImplementationBindingpublic <T> Schema<T> newAvroSchema(SchemaDefinition schemaDefinition)
newAvroSchema in interface PulsarClientImplementationBindingpublic <T extends com.google.protobuf.GeneratedMessageV3> Schema<T> newProtobufSchema(SchemaDefinition schemaDefinition)
newProtobufSchema in interface PulsarClientImplementationBindingpublic <T extends com.google.protobuf.GeneratedMessageV3> Schema<T> newProtobufNativeSchema(SchemaDefinition schemaDefinition)
newProtobufNativeSchema in interface PulsarClientImplementationBindingpublic <T> Schema<T> newJSONSchema(SchemaDefinition schemaDefinition)
newJSONSchema in interface PulsarClientImplementationBindingpublic Schema<GenericRecord> newAutoConsumeSchema()
newAutoConsumeSchema in interface PulsarClientImplementationBindingpublic Schema<byte[]> newAutoProduceSchema()
newAutoProduceSchema in interface PulsarClientImplementationBindingpublic Schema<byte[]> newAutoProduceSchema(Schema<?> schema)
newAutoProduceSchema in interface PulsarClientImplementationBindingpublic Schema<byte[]> newAutoProduceValidatedAvroSchema(Object schema)
newAutoProduceValidatedAvroSchema in interface PulsarClientImplementationBindingpublic Schema<KeyValue<byte[],byte[]>> newKeyValueBytesSchema()
newKeyValueBytesSchema in interface PulsarClientImplementationBindingpublic <K,V> Schema<KeyValue<K,V>> newKeyValueSchema(Schema<K> keySchema, Schema<V> valueSchema)
newKeyValueSchema in interface PulsarClientImplementationBindingpublic <K,V> Schema<KeyValue<K,V>> newKeyValueSchema(Schema<K> keySchema, Schema<V> valueSchema, KeyValueEncodingType keyValueEncodingType)
newKeyValueSchema in interface PulsarClientImplementationBindingpublic <K,V> Schema<KeyValue<K,V>> newKeyValueSchema(Class<K> key, Class<V> value, SchemaType type)
newKeyValueSchema in interface PulsarClientImplementationBindingpublic Schema<?> getSchema(SchemaInfo schemaInfo)
getSchema in interface PulsarClientImplementationBindingpublic GenericSchema<GenericRecord> getGenericSchema(SchemaInfo schemaInfo)
getGenericSchema in interface PulsarClientImplementationBindingpublic RecordSchemaBuilder newRecordSchemaBuilder(String name)
newRecordSchemaBuilder in interface PulsarClientImplementationBindingpublic KeyValueEncodingType decodeKeyValueEncodingType(SchemaInfo schemaInfo)
decodeKeyValueEncodingType in interface PulsarClientImplementationBindingschemaInfo - the schema infopublic <K,V> SchemaInfo encodeKeyValueSchemaInfo(Schema<K> keySchema, Schema<V> valueSchema, KeyValueEncodingType keyValueEncodingType)
encodeKeyValueSchemaInfo in interface PulsarClientImplementationBindingkeySchema - the key schemavalueSchema - the value schemakeyValueEncodingType - the encoding type to encode and decode key value pairpublic <K,V> SchemaInfo encodeKeyValueSchemaInfo(String schemaName, Schema<K> keySchema, Schema<V> valueSchema, KeyValueEncodingType keyValueEncodingType)
encodeKeyValueSchemaInfo in interface PulsarClientImplementationBindingschemaName - the final schema namekeySchema - the key schemavalueSchema - the value schemakeyValueEncodingType - the encoding type to encode and decode key value pairpublic KeyValue<SchemaInfo,SchemaInfo> decodeKeyValueSchemaInfo(SchemaInfo schemaInfo)
decodeKeyValueSchemaInfo in interface PulsarClientImplementationBindingschemaInfo - key/value schema info.public String jsonifySchemaInfo(SchemaInfo schemaInfo)
jsonifySchemaInfo in interface PulsarClientImplementationBindingschemaInfo - the schema infopublic String jsonifySchemaInfoWithVersion(SchemaInfoWithVersion schemaInfoWithVersion)
jsonifySchemaInfoWithVersion in interface PulsarClientImplementationBindingschemaInfoWithVersion - the schema info with versionpublic String jsonifyKeyValueSchemaInfo(KeyValue<SchemaInfo,SchemaInfo> kvSchemaInfo)
jsonifyKeyValueSchemaInfo in interface PulsarClientImplementationBindingkvSchemaInfo - the key/value schema infopublic String convertKeyValueSchemaInfoDataToString(KeyValue<SchemaInfo,SchemaInfo> kvSchemaInfo) throws IOException
convertKeyValueSchemaInfoDataToString in interface PulsarClientImplementationBindingkvSchemaInfo - the key/value schema infoIOExceptionpublic byte[] convertKeyValueDataStringToSchemaInfoSchema(byte[] keyValueSchemaInfoDataJsonBytes)
throws IOException
convertKeyValueDataStringToSchemaInfoSchema in interface PulsarClientImplementationBindingkeyValueSchemaInfoDataJsonBytes - the key/value schema info data json bytesIOExceptionpublic BatcherBuilder newDefaultBatcherBuilder()
newDefaultBatcherBuilder in interface PulsarClientImplementationBindingpublic BatcherBuilder newKeyBasedBatcherBuilder()
newKeyBasedBatcherBuilder in interface PulsarClientImplementationBindingpublic MessagePayloadFactory newDefaultMessagePayloadFactory()
newDefaultMessagePayloadFactory in interface PulsarClientImplementationBindingpublic SchemaInfo newSchemaInfoImpl(String name, byte[] schema, SchemaType type, Map<String,String> propertiesValue)
newSchemaInfoImpl in interface PulsarClientImplementationBindingCopyright © 2017–2022 Apache Software Foundation. All rights reserved.