public class IgniteSourceTask
extends org.apache.kafka.connect.source.SourceTask
Note that a task will create a bounded queue in the grid for more reliable data transfer.
Queue size can be changed by IgniteSourceConstants.INTL_BUF_SIZE.
| Constructor and Description |
|---|
IgniteSourceTask() |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.kafka.connect.source.SourceRecord> |
poll() |
protected static void |
setStopped(boolean stopped)
Used by unit test to avoid restart node and valid state of the
stopped flag. |
void |
start(Map<String,String> props)
Filtering is done remotely.
|
void |
stop()
Stops the grid client.
|
protected void |
stopRemoteListen()
Stops the remote listener.
|
String |
version() |
public String version()
public void start(Map<String,String> props)
start in interface org.apache.kafka.connect.connector.Taskstart in class org.apache.kafka.connect.source.SourceTaskprops - Task properties.public List<org.apache.kafka.connect.source.SourceRecord> poll() throws InterruptedException
poll in class org.apache.kafka.connect.source.SourceTaskInterruptedExceptionpublic void stop()
stop in interface org.apache.kafka.connect.connector.Taskstop in class org.apache.kafka.connect.source.SourceTaskprotected void stopRemoteListen()
protected static void setStopped(boolean stopped)
stopped flag.stopped - Stopped flag.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019