Class AmqpSourceData
java.lang.Object
io.aiven.commons.kafka.connector.source.NativeSourceData<de.huxhorn.sulky.ulid.ULID.Value>
io.aiven.kafka.connect.amqp.source.AmqpSourceData
- All Implemented Interfaces:
AutoCloseable
public final class AmqpSourceData
extends io.aiven.commons.kafka.connector.source.NativeSourceData<de.huxhorn.sulky.ulid.ULID.Value>
The AMQP NativeSourceData implementation.
This implementation reads Delivery records from a protonj2 Receiver and
creates AmqpSourceNativeInfo objects from those.
Since Message objects are not required to have a
unique ID, this implementation uses a ULID for the native key. ULIDs are generated in the
AmqpSourceNativeInfo class.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe AMQP native source data implementation of NativeSourceData.KeySerde.Nested classes/interfaces inherited from class io.aiven.commons.kafka.connector.source.NativeSourceData
io.aiven.commons.kafka.connector.source.NativeSourceData.KeySerde<K> -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected io.aiven.commons.kafka.connector.source.OffsetManager.OffsetManagerEntrycreateOffsetManagerEntry(io.aiven.commons.kafka.connector.source.task.Context context) io.aiven.commons.kafka.connector.source.OffsetManager.OffsetManagerEntrycreateOffsetManagerEntry(Map<String, Object> data) getNativeItemIterator(de.huxhorn.sulky.ulid.ULID.Value ignore) protected Optional<io.aiven.commons.kafka.connector.source.NativeSourceData.KeySerde<de.huxhorn.sulky.ulid.ULID.Value>>io.aiven.commons.kafka.connector.source.OffsetManager.OffsetManagerKeygetOffsetManagerKey(de.huxhorn.sulky.ulid.ULID.Value nativeKey)
-
Method Details
-
getSourceName
- Specified by:
getSourceNamein classio.aiven.commons.kafka.connector.source.NativeSourceData<de.huxhorn.sulky.ulid.ULID.Value>
-
getNativeItemIterator
public Iterator<AmqpSourceNativeInfo> getNativeItemIterator(de.huxhorn.sulky.ulid.ULID.Value ignore) - Specified by:
getNativeItemIteratorin classio.aiven.commons.kafka.connector.source.NativeSourceData<de.huxhorn.sulky.ulid.ULID.Value>
-
createOffsetManagerEntry
public io.aiven.commons.kafka.connector.source.OffsetManager.OffsetManagerEntry createOffsetManagerEntry(Map<String, Object> data) - Specified by:
createOffsetManagerEntryin classio.aiven.commons.kafka.connector.source.NativeSourceData<de.huxhorn.sulky.ulid.ULID.Value>
-
createOffsetManagerEntry
protected io.aiven.commons.kafka.connector.source.OffsetManager.OffsetManagerEntry createOffsetManagerEntry(io.aiven.commons.kafka.connector.source.task.Context context) - Specified by:
createOffsetManagerEntryin classio.aiven.commons.kafka.connector.source.NativeSourceData<de.huxhorn.sulky.ulid.ULID.Value>
-
getNativeKeySerde
protected Optional<io.aiven.commons.kafka.connector.source.NativeSourceData.KeySerde<de.huxhorn.sulky.ulid.ULID.Value>> getNativeKeySerde()- Specified by:
getNativeKeySerdein classio.aiven.commons.kafka.connector.source.NativeSourceData<de.huxhorn.sulky.ulid.ULID.Value>
-
getOffsetManagerKey
public io.aiven.commons.kafka.connector.source.OffsetManager.OffsetManagerKey getOffsetManagerKey(de.huxhorn.sulky.ulid.ULID.Value nativeKey) - Specified by:
getOffsetManagerKeyin classio.aiven.commons.kafka.connector.source.NativeSourceData<de.huxhorn.sulky.ulid.ULID.Value>
-
close
- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classio.aiven.commons.kafka.connector.source.NativeSourceData<de.huxhorn.sulky.ulid.ULID.Value>- Throws:
Exception
-