public class JbootRedismqImpl extends JbootmqBase implements Jbootmq, Runnable
| 限定符和类型 | 字段和说明 |
|---|---|
private Integer |
database |
private Thread |
dequeueThread |
private long |
interval |
private redis.clients.jedis.BinaryJedisPubSub |
jedisPubSub |
private static com.jfinal.log.Log |
LOG |
private Map<String,String> |
outterChannelMap |
private JbootRedis |
redis |
channels, config, isStarted, serializer, syncReceiveMessageChannels| 构造器和说明 |
|---|
JbootRedismqImpl(JbootmqConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
doExecuteDequeue() |
void |
enqueue(Object message,
String toChannel) |
long |
getInterval() |
protected void |
onStartListening() |
protected void |
onStopListening() |
void |
publish(Object message,
String toChannel) |
void |
run() |
void |
setInterval(long interval) |
addChannelListener, addMessageListener, addMessageListener, getConfig, getGlobalListeners, getListenersByChannel, getSerializer, getThreadPool, isStarted, notifyListeners, notifyListeners, removeAllListeners, removeListener, setSerializer, setThreadPool, startListening, stopListeningclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMessageListener, addMessageListener, getConfig, getGlobalListeners, getListenersByChannel, removeAllListeners, removeListener, startListening, stopListeningprivate static final com.jfinal.log.Log LOG
private JbootRedis redis
private Thread dequeueThread
private redis.clients.jedis.BinaryJedisPubSub jedisPubSub
private long interval
private Map<String,String> outterChannelMap
public JbootRedismqImpl(JbootmqConfig config)
protected void onStartListening()
onStartListening 在类中 JbootmqBaseprotected void onStopListening()
onStopListening 在类中 JbootmqBasepublic void doExecuteDequeue()
public long getInterval()
public void setInterval(long interval)
Copyright © 2024. All rights reserved.