Interface ReaderGroupManager

  • All Superinterfaces:
    java.lang.AutoCloseable

    public interface ReaderGroupManager
    extends java.lang.AutoCloseable
    Used to create and manage reader groups.
    • Method Detail

      • withScope

        static ReaderGroupManager withScope​(java.lang.String scope,
                                            java.net.URI controllerUri)
        Creates a new instance of ReaderGroupManager.
        Parameters:
        scope - The Scope string.
        controllerUri - The Controller URI.
        Returns:
        Instance of Stream Manager implementation.
      • withScope

        static ReaderGroupManager withScope​(java.lang.String scope,
                                            ClientConfig clientConfig)
        Creates a new instance of ReaderGroupManager.
        Parameters:
        scope - The Scope string.
        clientConfig - Configuration for the client.
        Returns:
        Instance of Stream Manager implementation.
      • deleteReaderGroup

        void deleteReaderGroup​(java.lang.String groupName)
        Deletes a reader group, removing any state associated with it. There should be no reader left on the group when this is called. If there are any, the group will be deleted from underneath them and they will encounter exceptions.
        Parameters:
        groupName - The group to be deleted.
      • close

        void close()
        Close this manager class. This will close any connections created through it.
        Specified by:
        close in interface java.lang.AutoCloseable
        See Also:
        AutoCloseable.close()