Interface StateManager

  • All Superinterfaces:
    java.lang.AutoCloseable
    All Known Implementing Classes:
    InstanceStateManager

    public interface StateManager
    extends java.lang.AutoCloseable
    A state manager that manages multiple state stores.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()  
      org.apache.pulsar.functions.api.StateStore getStore​(java.lang.String tenant, java.lang.String namespace, java.lang.String name)
      Get the state store with the given name.
      void registerStore​(org.apache.pulsar.functions.api.StateStore store)
      Register the state store.
    • Method Detail

      • registerStore

        void registerStore​(org.apache.pulsar.functions.api.StateStore store)
        Register the state store.
        Parameters:
        store - the state store to register.
      • getStore

        org.apache.pulsar.functions.api.StateStore getStore​(java.lang.String tenant,
                                                            java.lang.String namespace,
                                                            java.lang.String name)
        Get the state store with the given name.
        Parameters:
        tenant - the state store tenant.
        namespace - the state store namespace.
        name - the state store name.
        Returns:
        the state store with the given name.
      • close

        void close()
        Specified by:
        close in interface java.lang.AutoCloseable