Class ExecutionsResponse
- java.lang.Object
-
- org.kie.kogito.trusty.service.common.responses.ExecutionsResponse
-
public class ExecutionsResponse extends Object
The execution headers response.
-
-
Constructor Summary
Constructors Constructor Description ExecutionsResponse(int total, int returnedRecords, int offset, Collection<ExecutionHeaderResponse> headers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ExecutionHeaderResponse>getHeaders()Gets the execution headers.intgetLimit()Gets the requested limit.intgetOffset()Gets the starting offset for the pagination.intgetTotal()Gets the total number of items returned.
-
-
-
Constructor Detail
-
ExecutionsResponse
public ExecutionsResponse(int total, int returnedRecords, int offset, Collection<ExecutionHeaderResponse> headers)
-
-
Method Detail
-
getTotal
public int getTotal()
Gets the total number of items returned.- Returns:
- The total number of items returned.
-
getLimit
public int getLimit()
Gets the requested limit.- Returns:
- The maximum number of items to be returned.
-
getOffset
public int getOffset()
Gets the starting offset for the pagination.- Returns:
- The pagination offset.
-
getHeaders
public Collection<ExecutionHeaderResponse> getHeaders()
Gets the execution headers.- Returns:
- THe execution headers.
-
-