Class SearchRequest
java.lang.Object
com.eqixiac.equinix.ibxsmartview.model.json.creators.SearchRequest
- All Implemented Interfaces:
PaginatedPostBody
Typed request body for the system-alerts search POST endpoint (
SearchRequest in the
spec). Carries the filter, request-side pagination and sort options.
Implements PaginatedPostBody so the shared paging pipeline can fetch subsequent
pages by re-pointing the body's pagination member at the next window (spec:
SearchPagination {offset, limit} inside the body).
-
Constructor Summary
ConstructorsConstructorDescriptionSearchRequest(SearchFilter filter, SearchPagination pagination, List<SearchSort> sort) -
Method Summary
Modifier and TypeMethodDescriptionvoidseekPage(long offset, long limit) Points this body's serialized pagination state at the page window starting atoffset, sizedlimit.
-
Constructor Details
-
SearchRequest
-
-
Method Details
-
seekPage
public void seekPage(long offset, long limit) Description copied from interface:PaginatedPostBodyPoints this body's serialized pagination state at the page window starting atoffset, sizedlimit. Called by the paging pipeline both to advance to the next page and to roll back to the current page after a failed fetch.- Specified by:
seekPagein interfacePaginatedPostBody- Parameters:
offset- the zero-based index of the first record of the requested pagelimit- the page size; implementations should ignore non-positive values (keeping their current/default limit) rather than sending an invalid one
-