Class TcpSocketManager.TcpSocketManagerFactory<M extends TcpSocketManager,T extends TcpSocketManager.FactoryData>
java.lang.Object
org.apache.logging.log4j.core.net.TcpSocketManager.TcpSocketManagerFactory<M,T>
- Type Parameters:
M
- The manager type.T
- The factory data type.
- All Implemented Interfaces:
ManagerFactory<M,
T>
- Direct Known Subclasses:
SslSocketManager.SslSocketManagerFactory
- Enclosing class:
- TcpSocketManager
protected static class TcpSocketManager.TcpSocketManagerFactory<M extends TcpSocketManager,T extends TcpSocketManager.FactoryData>
extends Object
implements ManagerFactory<M,T>
Factory to create a TcpSocketManager.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) M
createManager
(String name, OutputStream os, Socket socket, InetAddress inetAddress, T data) createManager
(String name, T data) Creates a Manager.(package private) Socket
createSocket
(T data) protected String
errorMessage
(T data, List<InetSocketAddress> socketAddresses)
-
Field Details
-
RESOLVER
-
-
Constructor Details
-
TcpSocketManagerFactory
protected TcpSocketManagerFactory()
-
-
Method Details
-
createManager
Description copied from interface:ManagerFactory
Creates a Manager.- Specified by:
createManager
in interfaceManagerFactory<M extends TcpSocketManager,
T extends TcpSocketManager.FactoryData> - Parameters:
name
- The name of the entity to manage.data
- The data required to create the entity.- Returns:
- A Manager for the entity.
-
createManager
-
createSocket
- Throws:
IOException
-
errorMessage
-