Interface ICrossViewScopeResponseConsumer<T extends Serializable>
-
- Type Parameters:
T- Type of the requested data.
- All Superinterfaces:
Serializable
public interface ICrossViewScopeResponseConsumer<T extends Serializable> extends Serializable
Processes the response obtained for a cross view scope request.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(ICrossViewScopeResponseData<T> responses)Handles the response returned for the request.static <T extends Serializable>
ICrossViewScopeResponseConsumer<T>crossViewScopeResponseConsumer(Class<T> type, ICrossViewScopeResponseConsumer<T> consumer)Utility method to create a cross view scope response consumer, compatible with var statements.
-
-
-
Method Detail
-
accept
void accept(ICrossViewScopeResponseData<T> responses) throws Exception
Handles the response returned for the request. When the response was obtained successfully, the second parameter will benull. When an error occurred and no response could be obtained, the first argument will be empty and the second argument will contain the error.- Parameters:
responses- All responses obtained from the request handlers.- Throws:
Exception- When the responses could not be processed. This exception is logged and ignored.
-
crossViewScopeResponseConsumer
static <T extends Serializable> ICrossViewScopeResponseConsumer<T> crossViewScopeResponseConsumer(Class<T> type, ICrossViewScopeResponseConsumer<T> consumer)
Utility method to create a cross view scope response consumer, compatible with var statements.- Type Parameters:
T- Type of the requested data.- Parameters:
type- The type of the requested data.consumer- The consumer to be used for processing the response.- Returns:
- A cross view scope response consumer that processes the response data.
-
-