Package ch.qos.logback.core.net.server
Class ServerSocketListener<T extends Client>
java.lang.Object
ch.qos.logback.core.net.server.ServerSocketListener<T>
- All Implemented Interfaces:
ServerListener<T>,Closeable,AutoCloseable
@Deprecated(since="2022-01-27")
public abstract class ServerSocketListener<T extends Client>
extends Object
implements ServerListener<T>
Deprecated.
This internal logback API is not supported by AEM as a Cloud Service.
A
ServerListener that accepts connections on a ServerSocket.-
Constructor Summary
ConstructorsConstructorDescriptionServerSocketListener(ServerSocket serverSocket) Deprecated.Constructs a new listener. -
Method Summary
-
Constructor Details
-
ServerSocketListener
Deprecated.Constructs a new listener.- Parameters:
serverSocket- server socket delegate
-
-
Method Details
-
acceptClient
Deprecated.Accepts the next client that appears on this listener.An implementation of this method is expected to block the calling thread and not return until either a client appears or an exception occurs.
- Specified by:
acceptClientin interfaceServerListener<T extends Client>- Returns:
- client object
- Throws:
IOException
-
close
public void close()Deprecated.Closes any underlyingCloseableresources associated with this listener.Note that (as described in Doug Lea's discussion about interrupting I/O operations in "Concurrent Programming in Java" (Addison-Wesley Professional, 2nd edition, 1999) this method is used to interrupt any blocked I/O operation in the client when the server is shutting down. The client implementation must anticipate this potential, and gracefully exit when the blocked I/O operation throws the relevant
IOExceptionsubclass.Note also, that unlike
Closeable.close()this method is not permitted to propagate anyIOExceptionthat occurs when closing the underlying resource(s).- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceServerListener<T extends Client>
-
toString
Deprecated.
-