Interface RequestProcessor

  • All Superinterfaces:
    java.lang.AutoCloseable
    All Known Implementing Classes:
    BookieRequestProcessor

    public interface RequestProcessor
    extends java.lang.AutoCloseable
    A request processor that is used for processing requests at bookie side.
    • Method Detail

      • close

        void close()
        Close the request processor.
        Specified by:
        close in interface java.lang.AutoCloseable
      • processRequest

        void processRequest​(java.lang.Object r,
                            BookieRequestHandler channel)
        Process request.
        Parameters:
        r - request to process
        channel - channel received the given request r