private void internalHandlePing(final SockJSSocket sock) { Session webSession = sock.webSession(); if (webSession != null) { webSession.setAccessed(); } SockInfo info = sockInfos.get(sock); if (info != null) { info.pingInfo.lastPing = System.currentTimeMillis(); // Trigger an event to allow custom behavior after updating lastPing checkCallHook(() -> new BridgeEventImpl(BridgeEventType.SOCKET_PING, null, sock), null, null); } }
/** * Mark the session as being accessed. */ public void setAccessed() { delegate.setAccessed(); }
/** * Mark the session as being accessed. */ public void setAccessed() { delegate.setAccessed(); }
session.setAccessed(); if (session.isRegenerated()) {
private void internalHandlePing(final SockJSSocket sock) { Session webSession = sock.webSession(); if (webSession != null) { webSession.setAccessed(); } SockInfo info = sockInfos.get(sock); if (info != null) { info.pingInfo.lastPing = System.currentTimeMillis(); // Trigger an event to allow custom behavior after updating lastPing checkCallHook(() -> new BridgeEventImpl(BridgeEventType.SOCKET_PING, null, sock), null, null); } }
if (session != null) { context.setSession(session); session.setAccessed(); addStoreSessionHandler(context); } else {
if (session != null) { context.setSession(session); session.setAccessed(); addStoreSessionHandler(context); } else {
session.setAccessed(); if (session.isRegenerated()) {
session.setAccessed(); if (session.isRegenerated()) {
session.setAccessed(); if (session.isRegenerated()) {