Package com.isomorphic.datasource

# Interface BaseRequestHandler<T extends BaseRequest>

public interface BaseRequestHandler<T extends BaseRequest>
This class handles execution of `BaseRequest`, mainly inside `DSTransaction.processQueue()`. You can implement your own version of this to control how a request is executed and how to deal with any exceptions thrown during it's execution.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `BaseResponse`
  `handleRequest(T request)`
  Used to execute a request such as `DSRequest` or `RPCRequest`.

- ## Method Details

  - ### handleRequest

    BaseResponse handleRequest(T request)
    Used to execute a request such as `DSRequest` or `RPCRequest`. The job of this handler is to deal with any pre- or post-processing required. Typical usage includes handling errors thrown by `BaseRequest.execute()`.
    Parameters:
      `request` - the request to be handled, must be something which extends `BaseRequest`
    Returns:
      `BaseResponse` as a result of processing the request.