Java Code Examples for com.amazonaws.services.kinesis.model.ListShardsRequest#getNextToken()
The following examples show how to use
com.amazonaws.services.kinesis.model.ListShardsRequest#getNextToken() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KinesisProxyTest.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
@Override protected boolean matchesSafely(final ListShardsRequest listShardsRequest, final Description description) { if (shardId == null) { if (listShardsRequest.getExclusiveStartShardId() != null) { return false; } } else { if (!shardId.equals(listShardsRequest.getExclusiveStartShardId())) { return false; } } if (listShardsRequest.getNextToken() != null) { if (!(listShardsRequest.getStreamName() == null && listShardsRequest.getExclusiveStartShardId() == null)) { return false; } if (!listShardsRequest.getNextToken().equals(nextToken)) { return false; } } else { return nextToken == null; } return true; }
Example 2
Source File: KinesisProxyTest.java From flink with Apache License 2.0 | 6 votes |
@Override protected boolean matchesSafely(final ListShardsRequest listShardsRequest, final Description description) { if (shardId == null) { if (listShardsRequest.getExclusiveStartShardId() != null) { return false; } } else { if (!shardId.equals(listShardsRequest.getExclusiveStartShardId())) { return false; } } if (listShardsRequest.getNextToken() != null) { if (!(listShardsRequest.getStreamName() == null && listShardsRequest.getExclusiveStartShardId() == null)) { return false; } if (!listShardsRequest.getNextToken().equals(nextToken)) { return false; } } else { return nextToken == null; } return true; }
Example 3
Source File: KinesisProxyTest.java From flink with Apache License 2.0 | 6 votes |
@Override protected boolean matchesSafely(final ListShardsRequest listShardsRequest, final Description description) { if (shardId == null) { if (listShardsRequest.getExclusiveStartShardId() != null) { return false; } } else { if (!shardId.equals(listShardsRequest.getExclusiveStartShardId())) { return false; } } if (listShardsRequest.getNextToken() != null) { if (!(listShardsRequest.getStreamName() == null && listShardsRequest.getExclusiveStartShardId() == null)) { return false; } if (!listShardsRequest.getNextToken().equals(nextToken)) { return false; } } else { return nextToken == null; } return true; }