Search in sources :

Example 1 with IKinesisProducer

use of com.amazonaws.services.kinesis.producer.IKinesisProducer in project beam by apache.

the class BasicKinesisProvider method createKinesisProducer.

@Override
public IKinesisProducer createKinesisProducer(KinesisProducerConfiguration config) {
    config.setRegion(region.getName());
    config.setCredentialsProvider(getCredentialsProvider());
    if (serviceEndpoint != null) {
        URI uri = URI.create(serviceEndpoint);
        config.setKinesisEndpoint(uri.getHost());
        config.setKinesisPort(uri.getPort());
    }
    config.setVerifyCertificate(verifyCertificate);
    return new KinesisProducer(config);
}
Also used : KinesisProducer(com.amazonaws.services.kinesis.producer.KinesisProducer) IKinesisProducer(com.amazonaws.services.kinesis.producer.IKinesisProducer) URI(java.net.URI)

Aggregations

IKinesisProducer (com.amazonaws.services.kinesis.producer.IKinesisProducer)1 KinesisProducer (com.amazonaws.services.kinesis.producer.KinesisProducer)1 URI (java.net.URI)1