org.rribbit.dispatching
Interface RequestDispatcher
- All Known Implementing Classes:
- HttpRequestDispatcher, JmsRequestDispatcher, LocalRequestDispatcher, RmiRequestDispatcher
public interface RequestDispatcher
A RequestDispatcher takes care of dispatching Request objects to a RequestProcessor. This could involve transportation over a network or communication protocol.
Implementations are responsible for encoding the Request object and decoding the Response object.
A single RequestDispatcher is always supposed to communicate with only a single RequestProcessor, for simplicity and ease of possible network configurations.
- Author:
- G.J. Schouten
dispatchRequest
<T> Response<T> dispatchRequest(Request request)
- Dispatches a
Request to a RequestProcessor and returns the Response.
- Parameters:
request - The Request to be dispatched to a RequestProcessor
- Returns:
- The
Response to be returned from the RequestProcessor
Copyright © 2013 RRiBbit.org. All Rights Reserved.