Class AsyncBeanImpl

java.lang.Object
spin.demo.async.AsyncBeanImpl
All Implemented Interfaces:
Runnable, AsyncBean

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

    • AsyncBeanImpl

      public AsyncBeanImpl()
  • Method Details

    • 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 Runnable
      See Also: