public interface BatchLinkRetriever
BatchLinkRetriever interface provides functionality to fetch multiple links in a single request.| Modifier and Type | Method and Description |
|---|---|
String |
addLinkRequest(BatchLinkRequest linkRequest)
Add a link request to be executed in a batch.
|
void |
clearRequestData()
Clears all data held by the retriever.
|
void |
executeRequest()
Executes a batch link request by querying for all the link request objects added using addLinkRequest.
|
Link |
getLink(String linkRequestId)
Returns a link object (if present) from the result available from executing the query by passing unique
identifier obtained when adding a link request.
|
String addLinkRequest(BatchLinkRequest linkRequest)
linkRequest - A BatchLinkRequest object containing parameters required to fetch a link.void executeRequest()
Link getLink(String linkRequestId)
linkRequestId - An unique identifier obtained when adding a link request.void clearRequestData()
Copyright © 2017 SDL Group. All rights reserved.