Package org.cometd.bayeux.server
Interface LocalSession
-
- All Superinterfaces:
ClientSession,Session
- All Known Implementing Classes:
LocalSessionImpl
public interface LocalSession extends ClientSession
A
LocalSessionis aClientSessionwithin the server.Unlike a
ServerSessionthat represents a remote client on the server, aLocalSessionis a new client, that is not remote and hence local to the server, that lives in the server.A
LocalSessionhas an associatedServerSessionand both share the same clientId, but have distinct sets of listeners, batching state, etc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cometd.bayeux.client.ClientSession
ClientSession.Extension, ClientSession.MessageListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServerSessiongetServerSession()-
Methods inherited from interface org.cometd.bayeux.client.ClientSession
addExtension, disconnect, disconnect, disconnect, getChannel, getExtensions, handshake, handshake, handshake, handshake, remoteCall, removeExtension
-
Methods inherited from interface org.cometd.bayeux.Session
batch, endBatch, getAttribute, getAttributeNames, getId, isConnected, isHandshook, removeAttribute, setAttribute, startBatch
-
-
-
-
Method Detail
-
getServerSession
ServerSession getServerSession()
- Returns:
- the associated
ServerSession
-
-