|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClientSession
Client Bayeux Session. This interface represents the client side Bayeux session, which is the entity that can subscribe and publish to channels.
Nested Class Summary | |
---|---|
static interface |
ClientSession.Extension
Extension API for client session. |
Method Summary | |
---|---|
void |
addExtension(ClientSession.Extension extension)
Add and extension to this session. |
SessionChannel |
getChannel(java.lang.String channelName)
Get a channel scoped by this session. |
void |
handshake()
Initiates the bayeux protocol handshake with the server(s). |
void |
handshake(java.util.Map<java.lang.String,java.lang.Object> template)
Initiates the bayeux protocol handshake with the server(s). |
Methods inherited from interface org.cometd.bayeux.Session |
---|
batch, disconnect, endBatch, getAttribute, getAttributeNames, getId, isConnected, removeAttribute, setAttribute, startBatch |
Method Detail |
---|
void addExtension(ClientSession.Extension extension)
extension
- void handshake() throws java.io.IOException
Initiates the bayeux protocol handshake with the server(s). This is an asynchronous handshake and does not wait for the handshake response
java.io.IOException
org.cometd.client.BayeuxClient#onConnectException(Throwable)}
,
org.cometd.client.BayeuxClient#onException(Throwable)}
,
org.cometd.client.BayeuxClient#onExpire()}
,
org.cometd.client.BayeuxClient#handshake(int time,java.util.concurrent.TimeUnit unit)}
void handshake(java.util.Map<java.lang.String,java.lang.Object> template) throws java.io.IOException
Initiates the bayeux protocol handshake with the server(s). This is an asynchronous handshake and does not wait for the handshake response
template
- Template to use for handshake message
java.io.IOException
org.cometd.client.BayeuxClient#onConnectException(Throwable)}
,
org.cometd.client.BayeuxClient#onException(Throwable)}
,
org.cometd.client.BayeuxClient#onExpire()}
,
org.cometd.client.BayeuxClient#handshake(int time,java.util.concurrent.TimeUnit unit)}
SessionChannel getChannel(java.lang.String channelName)
Get a channel representation scoped to this session. The SessionChannel may be for a specific channel (eg /foo/bar) or for a wild channel (eg /meta/** or /foo/* ).
channelName
- absolute or wild channel name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |