com.compilit.mediator.api.RequestHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cqers-mediator-api Show documentation
Show all versions of cqers-mediator-api Show documentation
The API for the corresponding CQ(E)RS Mediator Core library
The newest version!
package com.compilit.mediator.api;
/**
* A generic parent for all request handlers.
*
* @param The type of request.
* @param The return type of the request.
* @see CommandHandler
* @see QueryHandler
* @see EventHandler
*/
public interface RequestHandler {
/**
* @param request The specific implementation of either a Command, Query or Event.
* @return R The return type of the request.
*/
R handle(T request);
}