use of com.amazonaws.services.kinesis.model.MergeShardsRequest in project hazelcast by hazelcast.
the class AbstractKinesisTest method mergeShards.
protected void mergeShards(Shard shard1, Shard shard2) {
MergeShardsRequest request = new MergeShardsRequest();
request.setStreamName(STREAM);
request.setShardToMerge(shard1.getShardId());
request.setAdjacentShardToMerge(shard2.getShardId());
System.out.println("Merging " + shard1.getShardId() + " with " + shard2.getShardId());
kinesis.mergeShards(request);
}
Aggregations