|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.client.simple.SimpleClient.SimpleClientChannel
final class SimpleClient.SimpleClientChannel
Simple ClientChannel implementation
| Constructor Summary | |
|---|---|
SimpleClient.SimpleClientChannel(String name,
BigInteger id)
|
|
| Method Summary | |
|---|---|
String |
getName()
Returns the name of this channel. |
(package private) void |
joined()
|
(package private) void |
left()
|
(package private) void |
receivedMessage(ByteBuffer message)
|
void |
send(ByteBuffer message)
Sends the message contained in the specified ByteBuffer to
this channel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
SimpleClient.SimpleClientChannel(String name,
BigInteger id)
| Method Detail |
|---|
public String getName()
getName in interface ClientChannel
public void send(ByteBuffer message)
throws IOException
ByteBuffer to
this channel. The message starts at the buffer's current position
and ends at the buffer's limit. The buffer's position is not
modified by this operation.
If the server-side application does not filter messages on this
channel, the message will be delivered unaltered to all channel
members, including the sender. However, the server-side application
may alter the message, discard the message,
or modify the list of recipients for application-specific
reasons. If the channel message is not delivered to the sender
(because it is discarded by the application, for example), the
sender's ClientChannelListener will not receive a receivedMessage notification
for that message.
The ByteBuffer may be reused immediately after this method
returns. Changes made to the buffer after this method returns will
have no effect on the message sent to the channel by this invocation.
send in interface ClientChannelmessage - a message to send
IOException - if a synchronous I/O problem occursvoid joined()
void left()
void receivedMessage(ByteBuffer message)
|
Project Darkstar, Version 0.9.11 2013-07-29 21:43:03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||