Class AbstractServerSocketAppender<E>

    • Constructor Detail

      • AbstractServerSocketAppender

        public AbstractServerSocketAppender()
    • Method Detail

      • createServerListener

        protected ServerListener<ch.qos.logback.core.net.server.RemoteReceiverClient> createServerListener​(ServerSocket socket)
      • createServerRunner

        protected ServerRunner<ch.qos.logback.core.net.server.RemoteReceiverClient> createServerRunner​(ServerListener<ch.qos.logback.core.net.server.RemoteReceiverClient> listener,
                                                                                                       Executor executor)
      • postProcessEvent

        protected abstract void postProcessEvent​(E event)
        Post process an event received via #append(E).
        Parameters:
        event -
      • getPort

        public int getPort()
        Gets the local port for the listener.
        Returns:
        local port
      • setPort

        public void setPort​(int port)
        Sets the local port for the listener.
        Parameters:
        port - the local port to set
      • getBacklog

        public int getBacklog()
        Gets the listener queue depth.

        This represents the number of connected clients whose connections have not yet been accepted.

        Returns:
        queue depth
        See Also:
        ServerSocket
      • setBacklog

        public void setBacklog​(int backlog)
        Sets the listener queue depth.

        This represents the number of connected clients whose connections have not yet been accepted.

        Parameters:
        backlog - the queue depth to set
        See Also:
        ServerSocket
      • getAddress

        public String getAddress()
        Gets the local address for the listener.
        Returns:
        a string representation of the local address
      • setAddress

        public void setAddress​(String address)
        Sets the local address for the listener.
        Parameters:
        address - a host name or a string representation of an IP address
      • getClientQueueSize

        public int getClientQueueSize()
        Gets the event queue size used for each client connection.
        Returns:
        queue size
      • setClientQueueSize

        public void setClientQueueSize​(int clientQueueSize)
        Sets the event queue size used for each client connection.
        Parameters:
        clientQueueSize - the queue size to set