|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Room
A “room” is a place for clients to engage in group communication. A client that “joins a room” is known as a “room occupant.”
| Method Summary | |
|---|---|
boolean |
containsClient(Client client)
Returns true if the client is in the room, false otherwise. |
boolean |
containsObserver(Client client)
Returns true if the Client is an observer of the room, false otherwise. |
Set<Client> |
getClients()
Returns a reference to all of clients in the room. |
long |
getCreationTime()
Retrieves the time the room was created. |
int |
getNumClients()
Get the number of clients in the room. |
int |
getNumObservers()
Get the number of observers spectating the room. |
String |
getQualifiedID()
Returns the ID including the qualifier for the room. |
String |
getSimpleID()
Returns the Simple ID of the room. |
boolean |
isShutdown()
Indicates if this room has been shutdown. |
void |
restart()
Restarts the room with the original RoomDef. |
void |
sendMessage(Filter filter,
String message,
String... args)
This generates a u7 which is sent to all clients in the room. |
void |
sendMessage(Set<Client> clients,
String message,
String... args)
This generates a u7 which is sent to the clients in the list clients. |
void |
sendMessage(String message,
String... args)
This generates a u7 which is sent to all clients in the room. |
void |
shutdownRoom()
Shuts down this room and removes it from the server. |
| Methods inherited from interface net.user1.union.core.attribute.AttributeHolder |
|---|
getAttribute, getAttribute, getAttributes, getAttributes, getAttributesByScope, getAttributeValue, getAttributeValue, onChangeAttribute, onRemoveAttribute, removeAttribute, removeAttribute, setAttribute |
| Methods inherited from interface net.user1.union.core.event.EventProducer |
|---|
addEventListener, removeEventListener |
| Method Detail |
|---|
boolean containsClient(Client client)
client - the client
boolean containsObserver(Client client)
client - the client
int getNumClients()
Set<Client> getClients()
int getNumObservers()
void sendMessage(String message,
String... args)
message - - the name of the messageargs - - the args to be sent with the message
void sendMessage(Filter filter,
String message,
String... args)
filter - - the filter to be used to determine if the client should receive the messagemessage - - the name of the messageargs - - the args to be sent with the message
void sendMessage(Set<Client> clients,
String message,
String... args)
clients - - a set of clients to send the message tomessage - - the name of the messageargs - - the args to be sent with the messageString getSimpleID()
String getQualifiedID()
long getCreationTime()
void shutdownRoom()
void restart()
boolean isShutdown()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||