Class Context<K extends Comparable<K>>
java.lang.Object
io.aiven.kafka.connect.common.source.task.Context<K>
- Type Parameters:
K- is is the type/class of the key unique to the object the context is being created about
A Context which captures all the details about the source which are required to successfully send a source record
onto Kafka
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTopic()final voidfinal voidsetPartition(Integer partition) final voidsetStorageKey(K storageKey) final void
-
Constructor Details
-
Context
-
Context
Creates a defensive copy of the Context- Parameters:
anotherContext- The Context which needs to be copied
-
-
Method Details
-
getTopic
-
setTopic
-
getPartition
-
setPartition
-
getStorageKey
-
setStorageKey
-
getOffset
-
setOffset
-