Class PulsarRecord<T>
java.lang.Object
org.apache.pulsar.functions.source.PulsarRecord<T>
- All Implemented Interfaces:
Record<T>,RecordWithEncryptionContext<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidack()voidSome sink sometimes wants to control the ack type.voidfail()Optional<org.apache.pulsar.common.api.EncryptionContext>Retrieves encryption-context that is attached to record.getKey()org.apache.pulsar.client.api.MessageIdorg.apache.pulsar.client.api.Schema<T>getValue()voidSome sink sometimes wants to control the ack type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.functions.api.Record
getDestinationTopic
-
Constructor Details
-
PulsarRecord
public PulsarRecord()
-
-
Method Details
-
getKey
-
getTopicName
- Specified by:
getTopicNamein interfaceRecord<T>
-
getPartitionIndex
- Specified by:
getPartitionIndexin interfaceRecord<T>
-
getPartitionId
- Specified by:
getPartitionIdin interfaceRecord<T>
-
getRecordSequence
- Specified by:
getRecordSequencein interfaceRecord<T>
-
getValue
-
getSchema
-
getEventTime
- Specified by:
getEventTimein interfaceRecord<T>
-
cumulativeAck
public void cumulativeAck()Some sink sometimes wants to control the ack type. -
individualAck
public void individualAck()Some sink sometimes wants to control the ack type. -
getEncryptionCtx
Description copied from interface:RecordWithEncryptionContextRetrieves encryption-context that is attached to record.- Specified by:
getEncryptionCtxin interfaceRecordWithEncryptionContext<T>- Returns:
Optional<EncryptionContext>
-
getProperties
- Specified by:
getPropertiesin interfaceRecord<T>
-
getMessageId
public org.apache.pulsar.client.api.MessageId getMessageId() -
ack
public void ack() -
fail
public void fail() -
getMessage
- Specified by:
getMessagein interfaceRecord<T>
-