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 Description LeaderRequestProcessor(LeaderZooKeeperServer zks, RequestProcessor nextProcessor)
-
-
-
Constructor Detail
-
LeaderRequestProcessor
public LeaderRequestProcessor(LeaderZooKeeperServer zks, RequestProcessor nextProcessor)
-
-
Method Detail
-
processRequest
public void processRequest(Request request) throws RequestProcessor.RequestProcessorException
- Specified by:
processRequest
in interfaceRequestProcessor
- Throws:
RequestProcessor.RequestProcessorException
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfaceRequestProcessor
-
-