Interface MetaStore

  • All Known Implementing Classes:
    MetaStoreImpl

    public interface MetaStore
    Interface that describes the operations that the ManagedLedger need to do on the metadata store.
    • Method Detail

      • asyncUpdateLedgerIds

        void asyncUpdateLedgerIds​(java.lang.String ledgerName,
                                  MLDataFormats.ManagedLedgerInfo mlInfo,
                                  org.apache.pulsar.metadata.api.Stat stat,
                                  MetaStore.MetaStoreCallback<java.lang.Void> callback)
        Parameters:
        ledgerName - the name of the ManagedLedger
        mlInfo - managed ledger info
        stat - version object associated with current state
        callback - callback object
      • getCursors

        void getCursors​(java.lang.String ledgerName,
                        MetaStore.MetaStoreCallback<java.util.List<java.lang.String>> callback)
        Get the list of cursors registered on a ManagedLedger.
        Parameters:
        ledgerName - the name of the ManagedLedger
      • asyncGetCursorInfo

        void asyncGetCursorInfo​(java.lang.String ledgerName,
                                java.lang.String cursorName,
                                MetaStore.MetaStoreCallback<MLDataFormats.ManagedCursorInfo> callback)
        Get the ledger id associated with a cursor.

        This ledger id will contains the mark-deleted position for the cursor.

        Parameters:
        ledgerName -
        cursorName -
        callback -
      • asyncRemoveCursor

        void asyncRemoveCursor​(java.lang.String ledgerName,
                               java.lang.String cursorName,
                               MetaStore.MetaStoreCallback<java.lang.Void> callback)
        Drop the persistent state of a consumer from the metadata store.
        Parameters:
        ledgerName - the name of the ManagedLedger
        cursorName - the cursor name
        callback - callback object
      • removeManagedLedger

        void removeManagedLedger​(java.lang.String ledgerName,
                                 MetaStore.MetaStoreCallback<java.lang.Void> callback)
        Drop the persistent state for the ManagedLedger and all its associated consumers.
        Parameters:
        ledgerName - the name of the ManagedLedger
        callback - callback object