public class DefaultImplementation extends Object
Constructor and Description |
---|
DefaultImplementation() |
public static <T> SchemaDefinitionBuilder<T> newSchemaDefinitionBuilder()
public static ClientBuilder newClientBuilder()
public static MessageId newMessageId(long ledgerId, long entryId, int partitionIndex)
public static MessageId newMessageIdFromByteArray(byte[] data)
public static MessageId newMessageIdFromByteArrayWithTopic(byte[] data, String topicName)
public static Authentication newAuthenticationToken(String token)
public static Authentication newAuthenticationToken(Supplier<String> supplier)
public static Authentication newAuthenticationTLS(String certFilePath, String keyFilePath)
public static Authentication createAuthentication(String authPluginClassName, String authParamsString) throws PulsarClientException.UnsupportedAuthenticationException
public static Authentication createAuthentication(String authPluginClassName, Map<String,String> authParams) throws PulsarClientException.UnsupportedAuthenticationException
public static Schema<byte[]> newBytesSchema()
public static Schema<ByteBuffer> newByteBufferSchema()
public static <T> Schema<T> newAvroSchema(SchemaDefinition schemaDefinition)
public static <T extends com.google.protobuf.GeneratedMessageV3> Schema<T> newProtobufSchema(Class<T> clazz)
public static <T> Schema<T> newJSONSchema(SchemaDefinition schemaDefinition)
public static Schema<GenericRecord> newAutoConsumeSchema()
public static Schema<byte[]> newAutoProduceSchema()
public static <K,V> Schema<KeyValue<K,V>> newKeyValueSchema(Schema<K> keySchema, Schema<V> valueSchema)
public static <K,V> Schema<KeyValue<K,V>> newKeyValueSchema(Class<K> key, Class<V> value, SchemaType type)
public static Schema<?> getSchema(SchemaInfo schemaInfo)
public static GenericSchema getGenericSchema(SchemaInfo schemaInfo)
public static RecordSchemaBuilder newRecordSchemaBuilder(String name)
Copyright © 2017–2019 Apache Software Foundation. All rights reserved.