Class AsyncBeanImpl

  • All Implemented Interfaces:
    java.lang.Runnable, AsyncBean

    public class AsyncBeanImpl
    extends java.lang.Object
    implements AsyncBean, java.lang.Runnable
    Implementation of an async bean.
    • Constructor Summary

      Constructors 
      Constructor Description
      AsyncBeanImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addListener​(AsyncListener listener)
      Add a listener.
      void run()  
      void start()
      Start this bean in an asynchron thread.
      • Methods inherited from class java.lang.Object

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

      • AsyncBeanImpl

        public AsyncBeanImpl()
    • Method Detail

      • addListener

        public void addListener​(AsyncListener listener)
        Add a listener.
        Specified by:
        addListener in interface AsyncBean
        Parameters:
        listener - listener to add
      • start

        public void start()
        Start this bean in an asynchron thread.
        Specified by:
        start in interface AsyncBean
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        See Also:
        Runnable