Class AbstractSinkRecord<T>
java.lang.Object
org.apache.pulsar.functions.instance.AbstractSinkRecord<T>
- All Implemented Interfaces:
Record<T>
- Direct Known Subclasses:
OutputRecordSinkRecord,SinkRecord
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidack()voidSome sink sometimes wants to control the ack type.voidfail()protected static <T> org.apache.pulsar.client.api.Schema<T>getRecordSchema(Record<T> record) Record<?>voidSome sink sometimes wants to control the ack type.abstract booleanabstract booleanMethods 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, getEventTime, getKey, getMessage, getPartitionId, getPartitionIndex, getProperties, getRecordSequence, getSchema, getValue
-
Constructor Details
-
AbstractSinkRecord
-
-
Method Details
-
shouldAlwaysSetMessageProperties
public abstract boolean shouldAlwaysSetMessageProperties() -
shouldSetSchema
public abstract boolean shouldSetSchema() -
getSourceRecord
-
getTopicName
- Specified by:
getTopicNamein interfaceRecord<T>
-
ack
public void ack() -
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. -
fail
public void fail() -
getRecordSchema
-