Package spin.demo.async
Interface AsyncBean
- All Known Implementing Classes:
AsyncBeanImpl
public interface AsyncBean
A common interface for an async bean.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(AsyncListener listener) Add a listener.voidstart()Start this bean in an asynchron thread.
-
Method Details
-
addListener
Add a listener.- Parameters:
listener- listener to add
-
start
void start()Start this bean in an asynchron thread.
-