Search in sources :

Example 1 with MergeShardsRequest

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);
}
Also used : MergeShardsRequest(com.amazonaws.services.kinesis.model.MergeShardsRequest)

Aggregations

MergeShardsRequest (com.amazonaws.services.kinesis.model.MergeShardsRequest)1