Class ExampleNativeClient
java.lang.Object
io.aiven.commons.kafka.connector.source.impl.nativeProvided.ExampleNativeClient
A "native" client. This client returns lists of native objects.
In an actual implementation this would connect to the storage and retrieve data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the stored data.List the objects in the stored data.listObjects(String offset) Gets a list of native objects.voidWrite data into the stored data.
-
Constructor Details
-
ExampleNativeClient
public ExampleNativeClient()Constructor.
-
-
Method Details
-
clear
public void clear()Clear the stored data. -
write
Write data into the stored data.- Parameters:
key- the key for the data.data- the data.
-
listObjects
List the objects in the stored data.- Returns:
- the collection of data objects.
-
listObjects
Gets a list of native objects. In an actual implementation this method may retrieve one object or may retrieve a number of objects.- Parameters:
offset- This is the key value that was last read or null if there is no last read. It is a String because the K in theNativeSourceDataas defined inExampleNativeSourceDatais a String- Returns:
- the list of native objects. This is a collection of ExampleNativeItem because that is
the type of the N in
AbstractSourceNativeInfoas defined inExampleSourceNativeInfo.
-