Package spin.demo.async
Interface AsyncBean
-
- All Known Implementing Classes:
AsyncBeanImpl
public interface AsyncBeanA common interface for an async bean.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(AsyncListener listener)Add a listener.voidstart()Start this bean in an asynchron thread.
-
-
-
Method Detail
-
addListener
void addListener(AsyncListener listener)
Add a listener.- Parameters:
listener- listener to add
-
start
void start()
Start this bean in an asynchron thread.
-
-