public class IgniteZeroMqStreamer<K,V> extends StreamAdapter<byte[],K,V> implements AutoCloseable
ZeroMqTypeSocket
.Modifier and Type | Field and Description |
---|---|
protected IgniteLogger |
log
Logger.
|
ignite
Constructor and Description |
---|
IgniteZeroMqStreamer(int ioThreads,
ZeroMqTypeSocket socketType,
@NotNull String addr,
byte[] topic) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Stops ZeroMQ streamer.
|
void |
start()
Starts ZeroMQ streamer.
|
addMessage, getIgnite, getMultipleTupleExtractor, getSingleTupleExtractor, getStreamer, getTupleExtractor, setIgnite, setMultipleTupleExtractor, setSingleTupleExtractor, setStreamer, setTupleExtractor
protected IgniteLogger log
public IgniteZeroMqStreamer(int ioThreads, ZeroMqTypeSocket socketType, @NotNull @NotNull String addr, byte[] topic)
ioThreads
- Threads on context.socketType
- Socket type.addr
- Address to connect zmq.topic
- Topic name for PUB-SUB socket type, otherwise null.public void start()
public void close() throws Exception
close
in interface AutoCloseable
Exception
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019