Class StateManagerImpl

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

    public class StateManagerImpl
    extends java.lang.Object
    implements StateManager
    StateManager implementation.
    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      <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 class java.lang.Object

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

      • getObject

        public <O> O getObject​(java.lang.String boundObjectName,
                               long timeoutInMilliseconds)
                        throws java.lang.Throwable
        Description copied from interface: StateManager
        Obtains the object for the ManagedObject synchronously.
        Specified by:
        getObject in interface StateManager
        Parameters:
        boundObjectName - Bound name of the ManagedObject.
        timeoutInMilliseconds - Time out in milliseconds to wait for the ManagedObject creation.
        Returns:
        Object.
        Throws:
        UnknownObjectException - If unknown bound object name.
        java.lang.Throwable - If failure in obtaining the bound object.
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception