|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.forum.net.spi.AbstractConnectionManager
com.jivesoftware.forum.nntp.spi.NNTPConnectionManager
public class NNTPConnectionManager
A connection manager for NNTP servers. The class is primarily responsible for specifying the correct connection worker factory for the AbstractConnectionManager to use. The NNTPConnectionManager is also critical in mapping connections to sessions as soon as they are added to this connection manager.
Constructor Summary | |
---|---|
NNTPConnectionManager(SessionManager sessionManager)
Create a connection manager a session manager. |
Method Summary | |
---|---|
void |
addConnection(Connection con)
Add a connection to the manager. |
void |
removeConnection(Connection conn)
Remove the given connection from the manager. |
Methods inherited from class com.jivesoftware.forum.net.spi.AbstractConnectionManager |
---|
createConnection, destroy, getConfigMonitor, getConnectedMonitor, getConnection, getConnectionCount, getConnections, getConnections, getDisconnectedMonitor, getMaxConnections, initialize, registerCloseListener, removeCloseListener, setMaxConnections, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NNTPConnectionManager(SessionManager sessionManager)
sessionManager
- the session manager this connection manager will use.Method Detail |
---|
public void addConnection(Connection con)
ConnectionManager
Add a connection to the manager.
Connections added to the ConnectionManager are monitored for closing and are automatically added to the idle group by calling Connection.idle() on the added connection. Connections should use the idle() method to add themself to the idle group using addIdleSocket().
Connections should hide their underlying socket implementation. However, in order for the ConnectionManager to properly detect new data for reading on it's connections, it must have the socket of the connection. This is especially important when using nio channels.
addConnection
in interface ConnectionManager
addConnection
in class AbstractConnectionManager
con
- the connection to add to this manager for active managementpublic void removeConnection(Connection conn) throws java.lang.IllegalStateException
ConnectionManager
removeConnection
in interface ConnectionManager
removeConnection
in class AbstractConnectionManager
conn
- the connection to remove from the manager.
java.lang.IllegalStateException
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |