Interface DistributedSession

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable, Session
    All Known Implementing Classes:
    RemoteSession, TyrusSession

    public interface DistributedSession
    extends Session
    Extended Session which adds distributed properties.
    Author:
    Pavel Bucek (pavel.bucek at oracle.com)
    • Method Detail

      • getDistributedProperties

        java.util.Map<java.lang.String,​java.lang.Object> getDistributedProperties()
        Get distributed properties.

        Values put into this map must be 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.

        Returns:
        map of distributed properties.
        See Also:
        TyrusSession, RemoteSession