Interface PulsarClientProvider
public interface PulsarClientProvider
Service Provider Interface for the Pulsar client implementation.
The implementation module registers itself via META-INF/services
using the standard Java ServiceLoader mechanism.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classLazy initialization holder for the provider singleton. -
Method Summary
Modifier and TypeMethodDescriptionauthenticationToken(String token) authenticationToken(Supplier<String> tokenSupplier) Schema<byte[]> Schema<byte[]> autoProduceBytesSchema(Schema<?> base) <T> Schema<T> avroSchema(Class<T> pojo) Schema<byte[]> checkpointFromBytes(byte[] data) createAuthentication(String className, String params) createAuthentication(String className, Map<String, String> params) Schema<?> genericSchema(SchemaInfo schemaInfo) static PulsarClientProviderget()<T> Schema<T> jsonSchema(Class<T> pojo) messageIdFromBytes(byte[] data) <T extends com.google.protobuf.Message>
Schema<T> protobufSchema(Class<T> clazz)
-
Method Details
-
newClientBuilder
PulsarClientBuilder newClientBuilder() -
messageIdFromBytes
- Throws:
IOException
-
earliestMessageId
MessageId earliestMessageId() -
latestMessageId
MessageId latestMessageId() -
bytesSchema
Schema<byte[]> bytesSchema() -
stringSchema
-
booleanSchema
-
byteSchema
-
shortSchema
-
intSchema
-
longSchema
-
floatSchema
-
doubleSchema
-
jsonSchema
-
avroSchema
-
protobufSchema
-
autoProduceBytesSchema
Schema<byte[]> autoProduceBytesSchema() -
genericSchema
-
autoProduceBytesSchema
-
autoConsumeSchema
Schema<GenericRecord> autoConsumeSchema() -
checkpointFromBytes
- Throws:
IOException
-
earliestCheckpoint
Checkpoint earliestCheckpoint() -
latestCheckpoint
Checkpoint latestCheckpoint() -
authenticationToken
-
authenticationToken
-
authenticationTls
Authentication authenticationTls() -
createAuthentication
- Throws:
PulsarClientException
-
createAuthentication
Authentication createAuthentication(String className, Map<String, String> params) throws PulsarClientException- Throws:
PulsarClientException
-
get
-