@Internal public class StreamConsumerRegistrar extends Object
| Constructor and Description |
|---|
StreamConsumerRegistrar(KinesisProxySyncV2Interface kinesisProxyV2Interface,
FanOutRecordPublisherConfiguration configuration,
FullJitterBackoff backoff) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Destroy any open resources used by the factory.
|
void |
deregisterStreamConsumer(String stream)
Deregister the stream consumer with the given ARN.
|
String |
registerStreamConsumer(String stream,
String streamConsumerName)
Register a stream consumer with the given name against the given stream.
|
public StreamConsumerRegistrar(KinesisProxySyncV2Interface kinesisProxyV2Interface, FanOutRecordPublisherConfiguration configuration, FullJitterBackoff backoff)
public String registerStreamConsumer(String stream, String streamConsumerName) throws Exception
stream - the stream to register the stream consumer againststreamConsumerName - the name of the new stream consumerExecutionExceptionInterruptedExceptionExceptionpublic void deregisterStreamConsumer(String stream) throws Exception
stream - the stream in which to deregister the consumerExecutionExceptionInterruptedExceptionExceptionpublic void close()
Copyright © 2022–2024 The Apache Software Foundation. All rights reserved.