Interface StateManager

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

    public interface StateManager
    extends java.lang.AutoCloseable

    Manages state (multiple ManagedObject instances used externally).

    ManagedObject instances are kept alive until the StateManager is closed.

    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <O> O getObject​(java.lang.String boundObjectName, long timeoutInMilliseconds)
      Obtains the object for the ManagedObject synchronously.
      <O> void load​(java.lang.String boundObjectName, ObjectUser<O> user)
      Loads the object from the ManagedObject asynchronously.
      • Methods inherited from interface java.lang.AutoCloseable

        close