Example usage for com.amazonaws.services.simpledb.model SelectResult setNextToken

List of usage examples for com.amazonaws.services.simpledb.model SelectResult setNextToken

Introduction

In this page you can find the example usage for com.amazonaws.services.simpledb.model SelectResult setNextToken.

Prototype


public void setNextToken(String nextToken) 

Source Link

Document

An opaque token indicating that more items than MaxNumberOfItems were matched, the response size exceeded 1 megabyte, or the execution time exceeded 5 seconds.

Usage

From source file:org.apache.camel.component.aws.sdb.AmazonSDBClientMock.java

License:Apache License

@Override
public SelectResult select(SelectRequest selectRequest) throws AmazonServiceException, AmazonClientException {
    this.selectRequest = selectRequest;

    SelectResult result = new SelectResult();
    result.setNextToken("TOKEN2");
    result.getItems().add(new Item("ITEM1", null));
    result.getItems().add(new Item("ITEM2", null));
    return result;
}