Send feedback
Class CloudPubSubSinkTask (0.1.5)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.1.5 keyboard_arrow_down
public class CloudPubSubSinkTask extends SinkTask
Inheritance
java.lang.Object >
org.apache.kafka.connect.sink.SinkTask >
CloudPubSubSinkTask
Inherited Members
org.apache.kafka.connect.sink.SinkTask.close(java.util.Collection<org.apache.kafka.common.TopicPartition>)
org.apache.kafka.connect.sink.SinkTask.flush(java.util.Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndMetadata>)
org.apache.kafka.connect.sink.SinkTask.initialize(org.apache.kafka.connect.sink.SinkTaskContext)
org.apache.kafka.connect.sink.SinkTask.onPartitionsAssigned(java.util.Collection<org.apache.kafka.common.TopicPartition>)
org.apache.kafka.connect.sink.SinkTask.onPartitionsRevoked(java.util.Collection<org.apache.kafka.common.TopicPartition>)
org.apache.kafka.connect.sink.SinkTask.open(java.util.Collection<org.apache.kafka.common.TopicPartition>)
org.apache.kafka.connect.sink.SinkTask.preCommit(java.util.Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndMetadata>)
org.apache.kafka.connect.sink.SinkTask.put(java.util.Collection<org.apache.kafka.connect.sink.SinkRecord>)
org.apache.kafka.connect.sink.SinkTask.start(java.util.Map<java.lang.String,java.lang.String>)
org.apache.kafka.connect.sink.SinkTask.stop()
Constructors
CloudPubSubSinkTask()
public CloudPubSubSinkTask ()
CloudPubSubSinkTask(Publisher publisher)
public CloudPubSubSinkTask ( Publisher publisher )
Parameter
Name Description publisher com.google.cloud.pubsub.v1.Publisher
Methods
public void flush ( Map<TopicPartition , OffsetAndMetadata > partitionOffsets )
Parameter
Name Description partitionOffsets Map <org.apache.kafka.common.TopicPartition ,org.apache.kafka.clients.consumer.OffsetAndMetadata >
Overrides
org.apache.kafka.connect.sink.SinkTask.flush(java.util.Map<org.apache.kafka.common.TopicPartition,org.apache.kafka.clients.consumer.OffsetAndMetadata>)
put(Collection<SinkRecord> sinkRecords)
public void put ( Collection<SinkRecord> sinkRecords )
Parameter
Name Description sinkRecords Collection <org.apache.kafka.connect.sink.SinkRecord >
Overrides
org.apache.kafka.connect.sink.SinkTask.put(java.util.Collection<org.apache.kafka.connect.sink.SinkRecord>)
start(Map<String,String> props)
public void start ( Map<String , String > props )
Parameter
Overrides
org.apache.kafka.connect.sink.SinkTask.start(java.util.Map<java.lang.String,java.lang.String>)
stop()
Overrides
org.apache.kafka.connect.sink.SinkTask.stop()
version()
Returns
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[]]