Example usage for com.amazonaws.services.kinesis.model CreateStreamRequest getShardCount

List of usage examples for com.amazonaws.services.kinesis.model CreateStreamRequest getShardCount

Introduction

In this page you can find the example usage for com.amazonaws.services.kinesis.model CreateStreamRequest getShardCount.

Prototype


public Integer getShardCount() 

Source Link

Document

The number of shards that the stream will use.

Usage

From source file:com.facebook.presto.kinesis.util.MockKinesisClient.java

License:Apache License

@Override
public CreateStreamResult createStream(CreateStreamRequest createStreamRequest)
        throws AmazonServiceException, AmazonClientException {
    // Setup method to create a new stream:
    InternalStream stream = new InternalStream(createStreamRequest.getStreamName(),
            createStreamRequest.getShardCount(), true);
    this.streams.add(stream);
    return new CreateStreamResult();
}