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.
        Throws:
        io.pravega.common.ObjectClosedException - If the already closed ReaderGroupManager is used for further calls.
      • getReaderGroup

        ReaderGroup getReaderGroup​(java.lang.String groupName)
                            throws ReaderGroupNotFoundException
        Returns the requested reader group.
        Parameters:
        groupName - The name of the group
        Returns:
        Reader group with the given name
        Throws:
        ReaderGroupNotFoundException - If the reader group does not exist.
        io.pravega.common.ObjectClosedException - If the already closed ReaderGroupManager is used for further calls.
      • 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()