Package ch.qos.logback.core.net.server
Class RemoteReceiverServerListener
java.lang.Object
ch.qos.logback.core.net.server.ServerSocketListener<RemoteReceiverClient>
ch.qos.logback.core.net.server.RemoteReceiverServerListener
- All Implemented Interfaces:
ServerListener<RemoteReceiverClient>
,Closeable
,AutoCloseable
A
ServerListener
that accepts connections from remote receiver
component clients.-
Constructor Summary
ConstructorsConstructorDescriptionRemoteReceiverServerListener
(ServerSocket serverSocket) Constructs a new listener. -
Method Summary
Modifier and TypeMethodDescriptionprotected RemoteReceiverClient
createClient
(String id, Socket socket) Creates the client object for a new socket connectionMethods inherited from class ch.qos.logback.core.net.server.ServerSocketListener
acceptClient, close, toString
-
Constructor Details
-
RemoteReceiverServerListener
Constructs a new listener.- Parameters:
serverSocket
- server socket from which new client connections will be accepted
-
-
Method Details
-
createClient
Creates the client object for a new socket connection- Specified by:
createClient
in classServerSocketListener<RemoteReceiverClient>
- Parameters:
id
- identifier string for the clientsocket
- client's socket connection- Returns:
- client object
- Throws:
IOException
-