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.Task
start
in class org.apache.kafka.connect.source.SourceTask
props
- Task properties.public List<org.apache.kafka.connect.source.SourceRecord> poll() throws InterruptedException
poll
in class org.apache.kafka.connect.source.SourceTask
InterruptedException
public void stop()
stop
in interface org.apache.kafka.connect.connector.Task
stop
in class org.apache.kafka.connect.source.SourceTask
protected 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