public abstract class AbstractSource<V> extends PushSource<V>
| Modifier and Type | Field and Description |
|---|---|
protected Thread.UncaughtExceptionHandler |
handler |
protected boolean |
running |
protected Thread |
thread |
| Constructor and Description |
|---|
AbstractSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
abstract V |
extractValue(String message) |
void |
open(Map<String,Object> config,
SourceContext sourceContext) |
protected void |
process() |
protected void |
start() |
consume, getQueueLength, readprotected Thread thread
protected volatile boolean running
protected final Thread.UncaughtExceptionHandler handler
public void open(Map<String,Object> config, SourceContext sourceContext) throws Exception
protected void start()
public void close()
throws InterruptedException
InterruptedExceptionprotected void process()
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.