public class PulsarRecord<T> extends Object implements RecordWithEncryptionContext<T>
| Constructor and Description |
|---|
PulsarRecord() |
| Modifier and Type | Method and Description |
|---|---|
void |
ack() |
void |
fail() |
Optional<org.apache.pulsar.common.api.EncryptionContext> |
getEncryptionCtx()
Retrieves encryption-context that is attached to record.
|
Optional<Long> |
getEventTime() |
Optional<String> |
getKey() |
Optional<org.apache.pulsar.client.api.Message<T>> |
getMessage() |
org.apache.pulsar.client.api.MessageId |
getMessageId() |
Optional<String> |
getPartitionId() |
Optional<Integer> |
getPartitionIndex() |
Map<String,String> |
getProperties() |
Optional<Long> |
getRecordSequence() |
org.apache.pulsar.client.api.Schema<T> |
getSchema() |
Optional<String> |
getTopicName() |
T |
getValue() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDestinationTopicpublic Optional<String> getTopicName()
getTopicName in interface Record<T>public Optional<Integer> getPartitionIndex()
getPartitionIndex in interface Record<T>public Optional<String> getPartitionId()
getPartitionId in interface Record<T>public Optional<Long> getRecordSequence()
getRecordSequence in interface Record<T>public org.apache.pulsar.client.api.Schema<T> getSchema()
public Optional<Long> getEventTime()
getEventTime in interface Record<T>public Optional<org.apache.pulsar.common.api.EncryptionContext> getEncryptionCtx()
RecordWithEncryptionContextgetEncryptionCtx in interface RecordWithEncryptionContext<T>Optional<EncryptionContext>public Map<String,String> getProperties()
getProperties in interface Record<T>public org.apache.pulsar.client.api.MessageId getMessageId()
public Optional<org.apache.pulsar.client.api.Message<T>> getMessage()
getMessage in interface Record<T>Copyright © 2017–2021 Apache Software Foundation. All rights reserved.