Class RemoteAppenderServerRunner

All Implemented Interfaces:
ServerRunner<RemoteAppenderClient>, ContextAware, Runnable

class RemoteAppenderServerRunner extends ConcurrentServerRunner<RemoteAppenderClient>
A ServerRunner that receives logging events from remote appender clients.
  • Constructor Details

    • RemoteAppenderServerRunner

      public RemoteAppenderServerRunner(ServerListener<RemoteAppenderClient> listener, Executor executor)
      Constructs a new server runner.
      Parameters:
      listener - the listener from which the server will accept new clients
      executor - that will be used to execute asynchronous tasks on behalf of the runner.
  • Method Details

    • configureClient

      protected boolean configureClient(RemoteAppenderClient client)
      Configures a connected client.

      A subclass implements this method to perform any necessary configuration of the client object before its Runnable.run() method is invoked.

      Specified by:
      configureClient in class ConcurrentServerRunner<RemoteAppenderClient>
      Parameters:
      client - the subject client
      Returns:
      true if configuration was successful; if the return value is false the client connection will be dropped