|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Channel | |
---|---|
com.sun.sgs.app | Provides the interface to the Project Darkstar Server used by application developers. |
Uses of Channel in com.sun.sgs.app |
---|
Methods in com.sun.sgs.app that return Channel | |
---|---|
Channel |
ChannelManager.createChannel(String name,
ChannelListener listener,
Delivery delivery)
Creates a new channel with the specified listener and delivery guarantee, binds it to the specified name, and returns it. |
Channel |
ChannelManager.getChannel(String name)
Returns an existing channel with the specified name. |
Channel |
Channel.join(ClientSession session)
Adds a client session to this channel. |
Channel |
Channel.join(Set<ClientSession> sessions)
Adds the specified client sessions to this channel. |
Channel |
Channel.leave(ClientSession session)
Removes a client session from this channel. |
Channel |
Channel.leave(Set<ClientSession> sessions)
Removes the specified client sessions from this channel, If a session in the specified set is not joined to this channel, then no action for that session is taken. |
Channel |
Channel.leaveAll()
Removes all client sessions from this channel. |
Channel |
Channel.send(ClientSession sender,
ByteBuffer message)
Sends the message contained in the specified buffer to all client sessions joined to this channel. |
Methods in com.sun.sgs.app with parameters of type Channel | |
---|---|
void |
ChannelListener.receivedMessage(Channel channel,
ClientSession sender,
ByteBuffer message)
Notifies this listener that the given message is being sent
by the specified sender on the given channel . |
|
Project Darkstar, Version 0.9.9.6 2009-05-08 15:39:40 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |