@Override public GetRecordsResult get(String shardIterator, int maxRecords) throws ResourceNotFoundException, InvalidArgumentException, ExpiredIteratorException { final GetRecordsRequest getRecordsRequest = new GetRecordsRequest(); getRecordsRequest.setRequestCredentials(credentialsProvider.getCredentials()); getRecordsRequest.setShardIterator(shardIterator); getRecordsRequest.setLimit(maxRecords); final GetRecordsResult response = client.getRecords(getRecordsRequest); return response; }
/** * {@inheritDoc} */ @Override public GetRecordsResult get(String shardIterator, int maxRecords) throws ResourceNotFoundException, InvalidArgumentException, ExpiredIteratorException { final GetRecordsRequest getRecordsRequest = new GetRecordsRequest(); getRecordsRequest.setRequestCredentials(credentialsProvider.getCredentials()); getRecordsRequest.setShardIterator(shardIterator); getRecordsRequest.setLimit(maxRecords); final GetRecordsResult response = client.getRecords(getRecordsRequest); return response; }
@Override public GetRecordsResult get(String shardIterator, int maxRecords) throws ResourceNotFoundException, InvalidArgumentException, ExpiredIteratorException { final GetRecordsRequest getRecordsRequest = new GetRecordsRequest(); getRecordsRequest.setRequestCredentials(credentialsProvider.getCredentials()); getRecordsRequest.setShardIterator(shardIterator); getRecordsRequest.setLimit(maxRecords); final GetRecordsResult response = client.getRecords(getRecordsRequest); return response; }