Class StreamConsumerRegistrar


  • @Internal
    public class StreamConsumerRegistrar
    extends Object
    Responsible for registering and deregistering EFO stream consumers. Will block until consumers are ready.
    • Method Detail

      • registerStreamConsumer

        public String registerStreamConsumer​(String stream,
                                             String streamConsumerName)
                                      throws Exception
        Register a stream consumer with the given name against the given stream. Blocks until the consumer becomes active. If the stream consumer already exists, the ARN is returned.
        Parameters:
        stream - the stream to register the stream consumer against
        streamConsumerName - the name of the new stream consumer
        Returns:
        the stream consumer ARN
        Throws:
        ExecutionException
        InterruptedException
        Exception
      • deregisterStreamConsumer

        public void deregisterStreamConsumer​(String stream)
                                      throws Exception
        Deregister the stream consumer with the given ARN. Blocks until the consumer is deleted.
        Parameters:
        stream - the stream in which to deregister the consumer
        Throws:
        ExecutionException
        InterruptedException
        Exception
      • close

        public void close()
        Destroy any open resources used by the factory.