PagedResult<T> Class

  • java.lang.Object
    • Serializable
      • microsoft.servicefabric.actors.PagedResult<T>

Type Parameters

T

Type of the items this query result contains.

public class PagedResult

Represents the result of actor query calls.

Constructor Summary

Constructor Description
PagedResult()

Creates a new instance of PagedResult<T>.

Method Summary

Modifier and Type Method and Description
ContinuationToken getContinuationToken()

Gets a continuation token indicating if more items need to be fetched by calling the method again.

Remarks:A null value of continuation token means that the result contains all the items and no calls to method needs to be made to fetch more items.

List<T> getItems()

Gets Enumerator to iterate over the results.

int getMaxItemsToReturn()

Max number of items to return in Query Result.

void setContinuationToken(ContinuationToken token)

Sets a continuation token indicating if more items need to be fetched by calling the method again.

Remarks:A null value of continuation token means that the result contains all the items and no calls to method needs to be made to fetch more items.

void setItems(List<T> items)

Sets Enumerator to iterate over the results.

Constructor Details

PagedResult

public PagedResult()

Creates a new instance of PagedResult<T>.

Method Details

getContinuationToken

public ContinuationToken getContinuationToken()

Gets a continuation token indicating if more items need to be fetched by calling the method again.

Remarks:A null value of continuation token means that the result contains all the items and no calls to method needs to be made to fetch more items.

Returns:

ConinutationToken signifying if the method which returned the PagedResult<T> needs to called again to get more results

getItems

public List getItems()

Gets Enumerator to iterate over the results.

Returns:

Enumerator, which supports a simple iteration over the collection.

getMaxItemsToReturn

public static int getMaxItemsToReturn()

Max number of items to return in Query Result.

Returns:

returns the max number of items to return in query result.

setContinuationToken

public void setContinuationToken(ContinuationToken token)

Sets a continuation token indicating if more items need to be fetched by calling the method again.

Remarks:A null value of continuation token means that the result contains all the items and no calls to method needs to be made to fetch more items.

Parameters:

token - Continuation Token

setItems

public void setItems(List items)

Sets Enumerator to iterate over the results.

Parameters:

items - items

Applies to