|
JSettlers v1.0.6 API Built ${date} |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsoc.server.SOCChannelList
A class for tracking the chat channels
Field Summary | |
protected java.util.Hashtable |
channelMembers
|
protected java.util.Hashtable |
channelMutexes
|
protected boolean |
inUse
|
Constructor Summary | |
SOCChannelList()
constructor |
Method Summary | |
void |
addMember(Connection conn,
java.lang.String chName)
add a member to the chat channel |
void |
createChannel(java.lang.String chName)
create a new channel |
void |
deleteChannel(java.lang.String chName)
remove the channel from the list |
java.util.Enumeration |
getChannels()
|
java.util.Vector |
getMembers(java.lang.String chName)
|
boolean |
isChannel(java.lang.String chName)
|
boolean |
isChannelEmpty(java.lang.String chName)
|
boolean |
isMember(Connection conn,
java.lang.String chName)
|
void |
releaseMonitor()
release the monitor for this channel list |
boolean |
releaseMonitorForChannel(java.lang.String channel)
release the monitor for this channel |
void |
removeMember(Connection conn,
java.lang.String chName)
remove member from the chat channel |
void |
takeMonitor()
take the monitor for this channel list |
boolean |
takeMonitorForChannel(java.lang.String channel)
take the monitor for this channel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Hashtable channelMutexes
protected java.util.Hashtable channelMembers
protected boolean inUse
Constructor Detail |
public SOCChannelList()
Method Detail |
public void takeMonitor()
public void releaseMonitor()
public boolean takeMonitorForChannel(java.lang.String channel)
channel
- the name of the channel
public boolean releaseMonitorForChannel(java.lang.String channel)
channel
- the name of the channel
public java.util.Enumeration getChannels()
public java.util.Vector getMembers(java.lang.String chName)
chName
- channel name
public boolean isMember(Connection conn, java.lang.String chName)
chName
- the name of the channelconn
- the member's connection
public void addMember(Connection conn, java.lang.String chName)
chName
- the name of the channelconn
- the member's connectionpublic void removeMember(Connection conn, java.lang.String chName)
chName
- the name of the channelconn
- the member's connectionpublic boolean isChannel(java.lang.String chName)
chName
- the name of the channel
public boolean isChannelEmpty(java.lang.String chName)
chName
- the name of the channel
public void createChannel(java.lang.String chName)
chName
- the name of the channelpublic void deleteChannel(java.lang.String chName)
chName
- the name of the channel
|
JSettlers v1.0.6 API Built ${date} |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |