Class RemoteReceiverServerRunner

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

class RemoteReceiverServerRunner extends ConcurrentServerRunner<RemoteReceiverClient>
A ServerRunner that listens for connections from remote receiver component clients and delivers logging events to all connected clients.
  • Field Details

    • clientQueueSize

      private final int clientQueueSize
  • Constructor Details

    • RemoteReceiverServerRunner

      public RemoteReceiverServerRunner(ServerListener<RemoteReceiverClient> listener, Executor executor, int clientQueueSize)
      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.
      queueSize - size of the event queue that will be maintained for each client
  • Method Details

    • configureClient

      protected boolean configureClient(RemoteReceiverClient 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<RemoteReceiverClient>
      Parameters:
      client - the subject client
      Returns:
      true if configuration was successful; if the return value is false the client connection will be dropped