|
|||||||||
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.
Field Summary | |
---|---|
static java.lang.String |
ATTR_CLUSTER_TYPE
|
static java.lang.String |
ATTR_DIE_ON_EMPTY
|
static java.lang.String |
ATTR_MAX_CLIENTS
|
static java.lang.String |
ATTR_MAX_UPDATE_LEVEL
|
static java.lang.String |
ATTR_PASSWORD
|
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. |
java.util.Set<Client> |
getClients()
Returns a reference to all of clients in the room. |
ClusterRole |
getClusterRole()
Returns the role, if any, that the room has within the cluster (eg. |
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. |
java.lang.String |
getOwnerID()
Return the client ID of the owner of the room. |
java.lang.String |
getQualifiedID()
Returns the ID including the qualifier for the room. |
java.lang.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,
java.lang.String message,
java.lang.String... args)
This generates a u7 which is sent to all clients in the room. |
void |
sendMessage(java.util.Set<Client> clients,
java.lang.String message,
java.lang.String... args)
This generates a u7 which is sent to the clients in the list clients. |
void |
sendMessage(java.lang.String message,
java.lang.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.RemoteEventProducer |
---|
addRemoteEventListener, dispatchRemoteEvent, dispatchRemoteEvent, getRemoteEventClassMap, removeRemoteEventListener |
Methods inherited from interface net.user1.union.core.event.EventProducer |
---|
addEventListener, dispatchEvent, getEventClassMap, removeEventListener |
Field Detail |
---|
static final java.lang.String ATTR_MAX_CLIENTS
static final java.lang.String ATTR_DIE_ON_EMPTY
static final java.lang.String ATTR_MAX_UPDATE_LEVEL
static final java.lang.String ATTR_PASSWORD
static final java.lang.String ATTR_CLUSTER_TYPE
Method Detail |
---|
boolean containsClient(Client client)
client
- the client
boolean containsObserver(Client client)
client
- the client
int getNumClients()
java.util.Set<Client> getClients()
int getNumObservers()
void sendMessage(java.lang.String message, java.lang.String... args)
message
- - the name of the messageargs
- - the args to be sent with the messagevoid sendMessage(Filter filter, java.lang.String message, java.lang.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 messagevoid sendMessage(java.util.Set<Client> clients, java.lang.String message, java.lang.String... args)
clients
- - a set of clients to send the message tomessage
- - the name of the messageargs
- - the args to be sent with the messagejava.lang.String getSimpleID()
java.lang.String getQualifiedID()
java.lang.String getOwnerID()
long getCreationTime()
void shutdownRoom()
void restart()
boolean isShutdown()
ClusterRole getClusterRole()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |