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

org.apache.zookeeper.server

## Interface RequestProcessor

- All Known Implementing Classes:
    CommitProcessor, FinalRequestProcessor, FollowerRequestProcessor, LeaderRequestProcessor, ObserverRequestProcessor, PrepRequestProcessor, ProposalRequestProcessor, ReadOnlyRequestProcessor, SendAckRequestProcessor, SyncRequestProcessor, UnimplementedRequestProcessor

      public interface RequestProcessor

  RequestProcessors are chained together to process transactions. Requests are always processed in order. The standalone server, follower, and leader all have slightly different RequestProcessors chained together. Requests always move forward through the chain of RequestProcessors. Requests are passed to a RequestProcessor through processRequest(). Generally method will always be invoked by a single thread. When shutdown is called, the request RequestProcessor should also shutdown any RequestProcessors that it is connected to.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `RequestProcessor.RequestProcessorException`

  - ### Method Summary

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

- - ### Method Detail

    - #### processRequest

          void processRequest(Request request)
                       throws RequestProcessor.RequestProcessorException

      Throws:
        `RequestProcessor.RequestProcessorException`

    - #### shutdown

          void shutdown()

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