|
|
|
@ -99,7 +99,7 @@ public class CommandPubSubDecoder extends CommandDecoder {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected void decodeResult(CommandData<Object, Object> data, List<Object> parts, Channel channel,
|
|
|
|
|
final Object result) throws IOException {
|
|
|
|
|
Object result) throws IOException {
|
|
|
|
|
if (executor.isShutdown()) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -107,7 +107,7 @@ public class CommandPubSubDecoder extends CommandDecoder {
|
|
|
|
|
if (result instanceof Message) {
|
|
|
|
|
checkpoint();
|
|
|
|
|
|
|
|
|
|
final RedisPubSubConnection pubSubConnection = RedisPubSubConnection.getFrom(channel);
|
|
|
|
|
RedisPubSubConnection pubSubConnection = RedisPubSubConnection.getFrom(channel);
|
|
|
|
|
ChannelName channelName = ((Message) result).getChannel();
|
|
|
|
|
if (result instanceof PubSubStatusMessage) {
|
|
|
|
|
String operation = ((PubSubStatusMessage) result).getType().name().toLowerCase();
|
|
|
|
@ -160,7 +160,7 @@ public class CommandPubSubDecoder extends CommandDecoder {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void enqueueMessage(Object res, final RedisPubSubConnection pubSubConnection, final PubSubEntry entry) {
|
|
|
|
|
private void enqueueMessage(Object res, RedisPubSubConnection pubSubConnection, PubSubEntry entry) {
|
|
|
|
|
if (res != null) {
|
|
|
|
|
entry.getQueue().add((Message) res);
|
|
|
|
|
}
|
|
|
|
|