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 Details

    • TcpSocketManagerFactory

      protected TcpSocketManagerFactory()
  • Method Details

    • createManager

      public M createManager(String name, T data)
      Description copied from interface: ManagerFactory
      Creates a Manager.
      Specified by:
      createManager in interface ManagerFactory<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)