public interface DistributedSession
extends javax.websocket.Session
Session
which adds distributed properties.Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getDistributedProperties()
Get distributed properties.
|
addMessageHandler, addMessageHandler, addMessageHandler, close, close, getAsyncRemote, getBasicRemote, getContainer, getId, getMaxBinaryMessageBufferSize, getMaxIdleTimeout, getMaxTextMessageBufferSize, getMessageHandlers, getNegotiatedExtensions, getNegotiatedSubprotocol, getOpenSessions, getPathParameters, getProtocolVersion, getQueryString, getRequestParameterMap, getRequestURI, getUserPrincipal, getUserProperties, isOpen, isSecure, removeMessageHandler, setMaxBinaryMessageBufferSize, setMaxIdleTimeout, setMaxTextMessageBufferSize
Map<String,Object> getDistributedProperties()
Serializable
or serializable by other, implementation-dependent
alternative.
Content of this map is synchronized among all cluster nodes, so putting an entry on any of the nodes will be
visible on all other nodes which have reference to current session (in form of TyrusSession
or RemoteSession
).
Please note that when not running in the distributed environment, this map behaves similarly to Session.getUserProperties()
, so no serialization or deserialization is performed when values are read from or stored to
the returned map.TyrusSession
,
RemoteSession
Copyright © 2012-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.