public interface BaseRequestHandler
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.Modifier and Type | Method and Description |
---|---|
BaseResponse | handleRequest(BaseRequest request) Used to execute a request such as DSRequest or RPCRequest . |
BaseResponse handleRequest(BaseRequest request)
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()
.request
- the request to be handled, must be something which extends BaseRequest
BaseResponse
as a result of processing the request.