Class ReadOnlyRequestProcessor

  • All Implemented Interfaces:
    Runnable, RequestProcessor

    public class ReadOnlyRequestProcessor
    extends ZooKeeperCriticalThread
    implements RequestProcessor
    This processor is at the beginning of the ReadOnlyZooKeeperServer's processors chain. All it does is, it passes read-only operations (e.g. OpCode.getData, OpCode.exists) through to the next processor, but drops state-changing operations (e.g. OpCode.create, OpCode.setData).