All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.unterrainer.commons.httpserver.extensions.delegates.PostGetSingleAsync Maven / Gradle / Ivy

There is a newer version: 0.3.14
Show newest version
package info.unterrainer.commons.httpserver.extensions.delegates;

import info.unterrainer.commons.httpserver.extensions.AsyncExtensionContext;
import info.unterrainer.commons.rdbutils.entities.BasicJpa;
import info.unterrainer.commons.serialization.jsons.BasicJson;

public interface PostGetSingleAsync

{ /** * Allows you to execute code after the fetching of a list of items. *

* Since this is asynchronous changing the DTOs will do nothing (runs in * parallel and the action probably already happened when your code is * executed). * * @param asyncCtx a context containing values that have been mapped using * AsyncExtensionContextMappers * @param receivedId the ID of the item that was fetched * @param readJpa the JPA that was read based on the received ID * @param response the JSON that will be sent as a response */ void handle(AsyncExtensionContext asyncCtx, Long receivedId, P readJpa, J response); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy