Class InstanceStateManager

  • All Implemented Interfaces:
    java.lang.AutoCloseable, StateManager

    public class InstanceStateManager
    extends java.lang.Object
    implements StateManager
    The state manager for managing state stores for a running function instance.
    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InstanceStateManager

        public InstanceStateManager()
    • Method Detail

      • registerStore

        public void registerStore​(org.apache.pulsar.functions.api.StateStore store)
        Description copied from interface: StateManager
        Register the state store.
        Specified by:
        registerStore in interface StateManager
        Parameters:
        store - the state store to register.
      • getStore

        public org.apache.pulsar.functions.api.StateStore getStore​(java.lang.String tenant,
                                                                   java.lang.String namespace,
                                                                   java.lang.String name)
        Description copied from interface: StateManager
        Get the state store with the given name.
        Specified by:
        getStore in interface StateManager
        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

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