Class InstanceStateManager

java.lang.Object
org.apache.pulsar.functions.instance.state.InstanceStateManager
All Implemented Interfaces:
AutoCloseable, StateManager

public class InstanceStateManager extends Object implements StateManager
The state manager for managing state stores for a running function instance.
  • Constructor Details

    • InstanceStateManager

      public InstanceStateManager()
  • Method Details

    • registerStore

      public void registerStore(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 StateStore getStore(String tenant, String namespace, 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 AutoCloseable
      Specified by:
      close in interface StateManager