Class TcpSocketManager.TcpSocketManagerFactory<M extends TcpSocketManager,T extends org.apache.logging.log4j.core.net.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>
- Enclosing class:
- TcpSocketManager
protected static class TcpSocketManager.TcpSocketManagerFactory<M extends TcpSocketManager,T extends org.apache.logging.log4j.core.net.TcpSocketManager.FactoryData> extends Object implements ManagerFactory<M,T>
Factory to create a TcpSocketManager.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TcpSocketManagerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description M
createManager(String name, T data)
Creates a Manager.protected String
errorMessage(T data, List<InetSocketAddress> socketAddresses)
-
-
-
Method Detail
-
createManager
public M createManager(String name, T data)
Description copied from interface:ManagerFactory
Creates a Manager.- Specified by:
createManager
in interfaceManagerFactory<M extends TcpSocketManager,T extends org.apache.logging.log4j.core.net.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.
-
errorMessage
protected String errorMessage(T data, List<InetSocketAddress> socketAddresses)
-
-