Package org.jgroups.protocols
Class FD_SOCK.ServerSocketHandler
java.lang.Object
org.jgroups.protocols.FD_SOCK.ServerSocketHandler
- All Implemented Interfaces:
Runnable
- Enclosing class:
FD_SOCK
Handles the server-side of a client-server socket connection. Waits until a client connects, and then loops
until that client closes the connection. Note that there is no new thread spawned for the listening on the
client socket, therefore there can only be 1 client connection at the same time. Subsequent clients attempting
to create a connection will be blocked until the first client closes its connection. This should not be a problem
as the ring nature of the FD_SOCK protocol always has only 1 client connect to its right-hand-side neighbor.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Threadprotected final List<FD_SOCK.ClientConnectionHandler> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
acceptor
-
clients
-
-
Constructor Details
-
ServerSocketHandler
protected ServerSocketHandler()
-
-
Method Details