@Internal public class KinesisProxyV2 extends Object implements KinesisProxyV2Interface
Constructor and Description |
---|
KinesisProxyV2(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisAsyncClient,
software.amazon.awssdk.http.async.SdkAsyncHttpClient httpClient,
FanOutRecordPublisherConfiguration fanOutRecordPublisherConfiguration,
FullJitterBackoff backoff)
Create a new KinesisProxyV2.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Destroy any open resources used by the factory.
|
software.amazon.awssdk.services.kinesis.model.DeregisterStreamConsumerResponse |
deregisterStreamConsumer(String consumerArn) |
software.amazon.awssdk.services.kinesis.model.DescribeStreamConsumerResponse |
describeStreamConsumer(String streamConsumerArn) |
software.amazon.awssdk.services.kinesis.model.DescribeStreamConsumerResponse |
describeStreamConsumer(String streamArn,
String consumerName) |
software.amazon.awssdk.services.kinesis.model.DescribeStreamSummaryResponse |
describeStreamSummary(String stream) |
software.amazon.awssdk.services.kinesis.model.RegisterStreamConsumerResponse |
registerStreamConsumer(String streamArn,
String consumerName) |
CompletableFuture<Void> |
subscribeToShard(software.amazon.awssdk.services.kinesis.model.SubscribeToShardRequest request,
software.amazon.awssdk.services.kinesis.model.SubscribeToShardResponseHandler responseHandler) |
public KinesisProxyV2(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisAsyncClient, software.amazon.awssdk.http.async.SdkAsyncHttpClient httpClient, FanOutRecordPublisherConfiguration fanOutRecordPublisherConfiguration, FullJitterBackoff backoff)
kinesisAsyncClient
- AWS SDK v2 Kinesis client used to communicate with AWS serviceshttpClient
- the underlying HTTP client, reference required for close onlyfanOutRecordPublisherConfiguration
- the configuration for Fan Out featuresbackoff
- the backoff utility used to introduce Full Jitter delayspublic CompletableFuture<Void> subscribeToShard(software.amazon.awssdk.services.kinesis.model.SubscribeToShardRequest request, software.amazon.awssdk.services.kinesis.model.SubscribeToShardResponseHandler responseHandler)
subscribeToShard
in interface KinesisProxyV2Interface
public void close()
KinesisProxyV2Interface
close
in interface KinesisProxyV2Interface
public software.amazon.awssdk.services.kinesis.model.DescribeStreamSummaryResponse describeStreamSummary(String stream) throws InterruptedException, ExecutionException
describeStreamSummary
in interface KinesisProxyV2Interface
InterruptedException
ExecutionException
public software.amazon.awssdk.services.kinesis.model.DescribeStreamConsumerResponse describeStreamConsumer(String streamArn, String consumerName) throws InterruptedException, ExecutionException
describeStreamConsumer
in interface KinesisProxyV2Interface
InterruptedException
ExecutionException
public software.amazon.awssdk.services.kinesis.model.DescribeStreamConsumerResponse describeStreamConsumer(String streamConsumerArn) throws InterruptedException, ExecutionException
describeStreamConsumer
in interface KinesisProxyV2Interface
InterruptedException
ExecutionException
public software.amazon.awssdk.services.kinesis.model.RegisterStreamConsumerResponse registerStreamConsumer(String streamArn, String consumerName) throws InterruptedException, ExecutionException
registerStreamConsumer
in interface KinesisProxyV2Interface
InterruptedException
ExecutionException
public software.amazon.awssdk.services.kinesis.model.DeregisterStreamConsumerResponse deregisterStreamConsumer(String consumerArn) throws InterruptedException, ExecutionException
deregisterStreamConsumer
in interface KinesisProxyV2Interface
InterruptedException
ExecutionException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.