Constructor and Description |
---|
ServerClientSessions()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(ServerClientSession session)
Adds the specified element to the end of the list.
|
void |
clear()
Remove all elements from the clients list
|
void |
closeChannel(java.lang.String cid)
Closes all channels that belongs to the same sessions, so the session
is closed but not removed.
|
ServerClientSession |
get(java.lang.String cid)
Returns the first element of the queue if it isn't empty, otherwise null.
|
void |
list(java.io.PrintStream out)
Prints this ClientSessions out to the specified output stream.
|
void |
remove(java.lang.String cid)
Removes the element that it is identified by a channel identifier.
|
java.lang.String |
toString()
For debugging purpose.
|
public void add(ServerClientSession session)
session
- element to be appended to this list.public void remove(java.lang.String cid)
public ServerClientSession get(java.lang.String cid)
public void closeChannel(java.lang.String cid)
closeChannel
in class Sessions
cid
- the unique channel identifier.public void clear()
public java.lang.String toString()
CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Group on Interactive Coding of Images (GICI) (contact)