|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClientConnectionManager
A generic interface for an object which keeps track of a set of open client connections, creates new ones and ensures they are serviced properly.
When the service is Service.stop()ed, all connections will be closed and
the appropriate connectionClosed() calls must be made.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service |
|---|
com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State |
| Method Summary | |
|---|---|
void |
closeConnections(int n)
Closes n peer connections |
int |
getConnectedClientCount()
Gets the number of connected peers |
void |
openConnection(SocketAddress serverAddress,
StreamParser parser)
Creates a new connection to the given address, with the given parser used to handle incoming data. |
| Methods inherited from interface com.google.common.util.concurrent.Service |
|---|
addListener, isRunning, start, startAndWait, state, stop, stopAndWait |
| Method Detail |
|---|
void openConnection(SocketAddress serverAddress,
StreamParser parser)
int getConnectedClientCount()
void closeConnections(int n)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||