Class TyrusConnectionProxy
- java.lang.Object
-
- pl.morgwai.base.servlet.guice.scopes.WebsocketConnectionProxy
-
- pl.morgwai.base.servlet.guice.scopes.connectionproxy.tyrus.TyrusConnectionProxy
-
- All Implemented Interfaces:
Session,Closeable,AutoCloseable
public class TyrusConnectionProxy extends WebsocketConnectionProxy
Merges remoteconnectionsfrom other cluster nodes obtained viaTyrusSession.getRemoteSessions()intogetOpenSessions()and makesgetUserProperties()returnTyrusSession.getDistributedProperties().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTyrusConnectionProxy.Factory
-
Field Summary
-
Fields inherited from class pl.morgwai.base.servlet.guice.scopes.WebsocketConnectionProxy
ctxTracker, httpSession, wrappedConnection
-
-
Constructor Summary
Constructors Constructor Description TyrusConnectionProxy(Session connection, pl.morgwai.base.guice.scopes.ContextTracker<ContainerCallContext> ctxTracker, boolean remote)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Session>getOpenSessions()Union ofTyrusSession.getOpenSessions()andTyrusSession.getRemoteSessions().Map<String,Object>getUserProperties()TyrusSession.getDistributedProperties().-
Methods inherited from class pl.morgwai.base.servlet.guice.scopes.WebsocketConnectionProxy
addMessageHandler, addMessageHandler, addMessageHandler, close, close, equals, getAsyncRemote, getBasicRemote, getContainer, getId, getMaxBinaryMessageBufferSize, getMaxIdleTimeout, getMaxTextMessageBufferSize, getMessageHandlers, getNegotiatedExtensions, getNegotiatedSubprotocol, getPathParameters, getProtocolVersion, getQueryString, getRequestParameterMap, getRequestURI, getUserPrincipal, getWrappedConnection, hashCode, isOpen, isSecure, removeMessageHandler, setMaxBinaryMessageBufferSize, setMaxIdleTimeout, setMaxTextMessageBufferSize
-
-
-
-
Constructor Detail
-
TyrusConnectionProxy
public TyrusConnectionProxy(Session connection, pl.morgwai.base.guice.scopes.ContextTracker<ContainerCallContext> ctxTracker, boolean remote)
-
-
Method Detail
-
getOpenSessions
public Set<Session> getOpenSessions()
Union ofTyrusSession.getOpenSessions()andTyrusSession.getRemoteSessions().- Specified by:
getOpenSessionsin interfaceSession- Overrides:
getOpenSessionsin classWebsocketConnectionProxy
-
getUserProperties
public Map<String,Object> getUserProperties()
TyrusSession.getDistributedProperties().- Specified by:
getUserPropertiesin interfaceSession- Overrides:
getUserPropertiesin classWebsocketConnectionProxy
-
-