LeaderRequestProcessor (Apache ZooKeeper - Server 3.7.0 API)
Date: 2021-03-17

org.apache.zookeeper.server.quorum

## Class LeaderRequestProcessor

- java.lang.Object
- - org.apache.zookeeper.server.quorum.LeaderRequestProcessor

- All Implemented Interfaces:
    RequestProcessor

      public class LeaderRequestProcessor
      extends Object
      implements RequestProcessor

  Responsible for performing local session upgrade. Only request submitted directly to the leader should go through this processor.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.apache.zookeeper.server.RequestProcessor

      `RequestProcessor.RequestProcessorException`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LeaderRequestProcessor(LeaderZooKeeperServer zks, RequestProcessor nextProcessor)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `processRequest(Request request)`
    `void` | `shutdown()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### LeaderRequestProcessor

          public LeaderRequestProcessor(LeaderZooKeeperServer zks,
                                        RequestProcessor nextProcessor)

  - ### Method Detail

    - #### processRequest

          public void processRequest(Request request)
                              throws RequestProcessor.RequestProcessorException

      Specified by:
        `processRequest` in interface `RequestProcessor`
      Throws:
        `RequestProcessor.RequestProcessorException`

    - #### shutdown

          public void shutdown()

      Specified by:
        `shutdown` in interface `RequestProcessor`

Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.