Fixed - Inconsistent MaxInactiveInterval Setting in Sessions in multi-node

Signed-off-by: seakider <seakider@gmail.com>
pull/6478/head
seakider 3 days ago
parent 4ce7820fdc
commit cae8378ed6

@ -263,7 +263,7 @@ public class RedissonSession extends StandardSession {
return;
}
m.fastPut(name, value);
if (readMode == ReadMode.MEMORY && this.broadcastSessionUpdates || this.broadcastSessionEvents) {
if (readMode == ReadMode.REDIS || this.broadcastSessionUpdates) {
try {
Encoder encoder = m.getCodec().getMapValueEncoder();
topic.publish(new AttributeUpdateMessage(redissonManager.getNodeId(), getId(), name, value, encoder));
@ -336,11 +336,6 @@ public class RedissonSession extends StandardSession {
}
}
public void superSetAttribute(String name, Object value, boolean notify) {
super.setAttribute(name, value, notify);
}
@Override
public void setAttribute(String name, Object value, boolean notify) {
super.setAttribute(name, value, notify);

@ -263,7 +263,7 @@ public class RedissonSession extends StandardSession {
return;
}
m.fastPut(name, value);
if (readMode == ReadMode.MEMORY && this.broadcastSessionUpdates || this.broadcastSessionEvents) {
if (readMode == ReadMode.REDIS || this.broadcastSessionUpdates) {
try {
Encoder encoder = m.getCodec().getMapValueEncoder();
topic.publish(new AttributeUpdateMessage(redissonManager.getNodeId(), getId(), name, value, encoder));
@ -336,11 +336,6 @@ public class RedissonSession extends StandardSession {
}
}
public void superSetAttribute(String name, Object value, boolean notify) {
super.setAttribute(name, value, notify);
}
@Override
public void setAttribute(String name, Object value, boolean notify) {
super.setAttribute(name, value, notify);

@ -258,7 +258,7 @@ public class RedissonSession extends StandardSession {
return;
}
m.fastPut(name, value);
if (readMode == ReadMode.MEMORY && this.broadcastSessionUpdates || this.broadcastSessionEvents) {
if (readMode == ReadMode.REDIS || this.broadcastSessionUpdates) {
try {
Encoder encoder = m.getCodec().getMapValueEncoder();
topic.publish(new AttributeUpdateMessage(redissonManager.getNodeId(), getId(), name, value, encoder));
@ -331,11 +331,6 @@ public class RedissonSession extends StandardSession {
}
}
public void superSetAttribute(String name, Object value, boolean notify) {
super.setAttribute(name, value, notify);
}
@Override
public void setAttribute(String name, Object value, boolean notify) {
super.setAttribute(name, value, notify);

@ -258,7 +258,7 @@ public class RedissonSession extends StandardSession {
return;
}
m.fastPut(name, value);
if (readMode == ReadMode.MEMORY && this.broadcastSessionUpdates || this.broadcastSessionEvents) {
if (readMode == ReadMode.REDIS || this.broadcastSessionUpdates) {
try {
Encoder encoder = m.getCodec().getMapValueEncoder();
topic.publish(new AttributeUpdateMessage(redissonManager.getNodeId(), getId(), name, value, encoder));
@ -331,11 +331,6 @@ public class RedissonSession extends StandardSession {
}
}
public void superSetAttribute(String name, Object value, boolean notify) {
super.setAttribute(name, value, notify);
}
@Override
public void setAttribute(String name, Object value, boolean notify) {
super.setAttribute(name, value, notify);

@ -258,7 +258,7 @@ public class RedissonSession extends StandardSession {
return;
}
m.fastPut(name, value);
if (readMode == ReadMode.MEMORY && this.broadcastSessionUpdates || this.broadcastSessionEvents) {
if (readMode == ReadMode.REDIS || this.broadcastSessionUpdates) {
try {
Encoder encoder = m.getCodec().getMapValueEncoder();
topic.publish(new AttributeUpdateMessage(redissonManager.getNodeId(), getId(), name, value, encoder));
@ -331,11 +331,6 @@ public class RedissonSession extends StandardSession {
}
}
public void superSetAttribute(String name, Object value, boolean notify) {
super.setAttribute(name, value, notify);
}
@Override
public void setAttribute(String name, Object value, boolean notify) {
super.setAttribute(name, value, notify);

Loading…
Cancel
Save